From: Rich Ellis on
I'd suggest reading the help section entitled "Displaying Bit-Mapped Images"
to help you optimize your results.


"Tobias van der Neut" <tobias-v-d-neut(a)arcor.de> wrote in message
news:hm155i$o67$1(a)fred.mathworks.com...
> Cokelid <cokelid(a)googlemail.com> wrote in message
> <d3fc3362-eb40-42ad-9c7c-c5489f3d2991(a)t21g2000vbo.googlegroups.com>...
>> On Feb 23, 8:14 am, "Tobias van der Neut" <tobias-v-d-n...(a)arcor.de>
>> wrote:
>> > I want to display the image in a figure as it is, that means with all
>> > colors right. If I use the commands
>> > imagesc(picture);
>>
>> Tobias, you'll need to explain what the variable "picture" is if
>> anyone is to have a hope of helping you. Please think carefully about
>> your question.
>
> I now have implemented:
>
> [image, cmap] = imread('picturename.bmp');
> figure;
> imagesc(image);
> colormap(cmap);
> hold on;
>
> The test picture is a black circle, a blue triangle and a red rectangle.
> With this implementation I get the right colors of the objects but there
> is a noisy boundary around each object with varying colors. And these
> boundaries are unwanted.
>
> What else do I have to specify? I am sorry, I am kinda new to Matlab and
> this forum...
>