Login  Register

Re: Transparent Image overlays do not work on Mac OSX Yosemite with latest Apple Java 6

Posted by John Minter on Dec 13, 2014; 9:39pm
URL: http://imagej.273.s1.nabble.com/Transparent-Image-overlays-do-not-work-on-Mac-OSX-Yosemite-with-latest-Apple-Java-6-tp5010939p5010941.html

Thanks, Wayne. You are correct. However, it is the RGB X-Ray map I want to
overlay on the grayscale image. I suppose I could try an 8-bit color image.
Not sure how my custom LUTs would work though. I liked Oxford's idea of
having elements colored by hue, so I have generated LUTs for each of the
hues and use them to color the maps. The chemists and engineers I work with
really like having a montage of the X-ray maps, each superimposed on the
image. These have been much easier to interpret than multicolor overlays.
Some I have seen in the literature have been very effective; I haven't been
to get one on our samples....

John

On Sat, Dec 13, 2014 at 4:14 PM, Rasband, Wayne (NIH/NIMH) [E] <
[hidden email]> wrote:

>
> On Dec 13, 2014, at 3:01 PM, John Minter <[hidden email]> wrote:
> >
> > I have started working with transparent image overlays to overlay an
> X-ray
> > EDS map on the image from the area using an opacity of 50%. This works
> very
> > nicely on Windows with the Oracle JDK (1.6.0_24) and on MacOSX Yosemite
> > with Oracle Java 7 (1.7.0_71) and Java 8 (1.8.0_25) JDKs but not with the
> > latest Apple Java 6 (JavaForOSX2014-001, Java 1.6.0_65).
>
> This seems to only be a problem with RGB image overlays. The following
> JavaScript example, which uses an 8-bit image overlay, works as expected
> using Java 1.6.0_65 on OS X Yosemite.
>
>   img = IJ.openImage("http://imagej.nih.gov/ij/images/leaf.jpg");
>   img2 = IJ.openImage("http://imagej.nih.gov/ij/images/clown.jpg");
>   ip = img2.getProcessor();
>   ip = ip.convertToByte(false);
>   imageRoi = new ImageRoi(100, 100, ip);
>   imageRoi.setOpacity(0.5);
>   img.setRoi(imageRoi);
>   img.show();
>
>
> > Thought I should report this in case others are puzzled by this or if
> there
> > is a configuration for Java 6 I am missing.
> >
> > Best Regards,
> > John
> >
> > --
> > ImageJ mailing list: http://imagej.nih.gov/ij/list.html
>
> --
> ImageJ mailing list: http://imagej.nih.gov/ij/list.html
>

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html