Re: image gets fully white if i set window level
Posted by
Michael Schmid on
Aug 10, 2009; 3:08pm
URL: http://imagej.273.s1.nabble.com/image-gets-fully-white-if-i-set-window-level-tp3691515p3691516.html
Hi,
to me it looks like a problem with the
public void paint(Graphics g)
method of your viewer. Probably it does not paint the image (g.drawImage)
except on the first call, so any repaint operation will leave it white.
E.g., do you have the bufferedImage in a class variable, so that it
remains accessible in a separate (repaint) thread)?
Michael
______________________________________________________________________
On Mon, August 10, 2009 12:35, prashant wrote:
> Hi Everyone,
>
>
>
> I am creating a Dicom Image viewer.
>
> I am using Imagej for opening uncompressed images and Loci for Compressed
> images.
>
>
>
> I am opening my compressed images with the help of bio-Formats.jar.
>
> After that I convert this image to Imagej's ImagePlus object and then
> displaying onto my panel.
>
>
>
> Everything is successful but after display when I change a Window level or
> window center with just a fraction
>
> then image gets fully white.
>
>
>
> Is there is any problem in conversion or why image is ok with window level
> and window center.
>
>
>
> Thanks in advance
>
> Prashant
>