masking of image using another black and white image

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

masking of image using another black and white image

luckyluke
Dear ImageJ users,

I want to do simple masking and then subtract (or may be blacken) certain parts of an image using a black and white masking image . both original and masking images have the same size but the masking image describe the areas I need for working on my main picture.

I don't know which commands I can use with imageJ since I want to do them using java codes.

Thanks for any hint,
Regards
Reply | Threaded
Open this post in threaded view
|

Re: masking of image using another black and white image

gankaku
Hi Lucky Luke ;-)

Potentially, you might want to use the ImageCalculator java class to do so (
http://rsbweb.nih.gov/ij/developer/api/ij/plugin/ImageCalculator.html). The
parameters are like the options in the plugin when running it from the
menu. You can also record this by setting the macro recorder to "Java" to
see how you might implement it as a IJ.run command.

If you only use the binary image to define ROIs why not read the ROIs in by
applying the >Analyze >Analyze Particle function and using the "Add to
manager" option. Thus, you will get the ROIs in the ROI-Manager and can use
those on your original image for any kind of measurements you want to
perform. You could also test how "Redirect to:" works in the >Analyze >Set
Measurement dialog to cirmumvent the ROI-Manager if desired.

Hope this helps.
cheers,
Jan

2014-11-05 6:35 GMT+01:00 luckyluke <
[hidden email]>:

> Dear ImageJ users,
>
> I want to do simple masking and then subtract (or may be blacken) certain
> parts of an image using a black and white masking image . both original and
> masking images have the same size but the masking image describe the areas
> I
> need for working on my main picture.
>
> I don't know which commands I can use with imageJ since I want to do them
> using java codes.
>
> Thanks for any hint,
> Regards
>
>
>
> --
> View this message in context:
> http://imagej.1557.x6.nabble.com/masking-of-image-using-another-black-and-white-image-tp5010306.html
> Sent from the ImageJ mailing list archive at Nabble.com.
>
> --
> ImageJ mailing list: http://imagej.nih.gov/ij/list.html
>



--

CEO: Dr. rer. nat. Jan Brocher
phone:  +49 (0)6234 917 03 39
mobile: +49 (0)176 705 746 81
e-mail: [hidden email]
info: [hidden email]
inquiries: [hidden email]
web: www.biovoxxel.de

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