Overlay/PointRoi obstructs image

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Overlay/PointRoi obstructs image

anowlandafez
Hi,
So I'm working with an image where I am placing a pointroi on top of it (as an overlay) to highlight points in the image.



Roi pr = new PointRoi(xAxis,yAxis,xAxis.length);
pr.setStrokeColor(Color.blue);
pr.setStrokeWidth(1);
Overlay overlay = new Overlay(pr);
nImage.setOverlay(overlay);

However, once placed on top, it seems to obstruct the original image, as you can now see there is a white background around the blue points.



I can't work out what the problem is. I've tried making the overlay background transparent, the pointroi color different, but can't see any way to stop this happening.

Thanks in advance if anyone knows what I'm doing wrong!
Reply | Threaded
Open this post in threaded view
|

Re: Overlay/PointRoi obstructs image

Michael Schmid
On Jun 24, 2015, at 14:47, anowlandafez wrote:

> Hi,
> So I'm working with an image where I am placing a pointroi on top of it (as
> an overlay) to highlight points in the image.
>
> <http://imagej.1557.x6.nabble.com/file/n5013265/img1.png>
>
> Roi pr = new PointRoi(xAxis,yAxis,xAxis.length);
> pr.setStrokeColor(Color.blue);
> pr.setStrokeWidth(1);
> Overlay overlay = new Overlay(pr);
> nImage.setOverlay(overlay);
>
> However, once placed on top, it seems to obstruct the original image, as you
> can now see there is a white background around the blue points.
>
> <http://imagej.1557.x6.nabble.com/file/n5013265/img2.png>
>
> I can't work out what the problem is. I've tried making the overlay
> background transparent, the pointroi color different, but can't see any way
> to stop this happening.
>
> Thanks in advance if anyone knows what I'm doing wrong!

Hi,

you can double-click the Point Tool and select a type without the white crosshairs, i.e. 'Dot' or 'Circle'. There you can also select the size and color of the marker.

If you want to set it in a macro or Java plugin, use Process>Macros>Record to see what the macro or Java code would look like.

Michael

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html
Reply | Threaded
Open this post in threaded view
|

Re: Overlay/PointRoi obstructs image

anowlandafez
This worked wonderfully, thanks so much!