Re: Changing background colour on colour RGB images

Posted by Anderson, Charles (DNR) on
URL: http://imagej.273.s1.nabble.com/filter-particles-tp4999791p4999794.html

Consider the SIOX plugin (Simple Interactive Object Extraction).

-----Original Message-----
From: ImageJ Interest Group [mailto:[hidden email]] On Behalf Of Matthew Pearson
Sent: Thursday, August 16, 2012 5:25 AM
To: [hidden email]
Subject: Changing background colour on colour RGB images

Hi all,

I have some images of embryos captured using a colour camera outputting RGB images.  I have a batch of images of mouse embryos captured in a petri dish without agar which gave the images a nice black background almost darkfield in appearance.  I then captured some images later of different embryos but then the petri dish had agar in and this has given a grey/blue background with the embryo not so well contrasted and i want to put them all in a figure and have a uniform background.

So in essence i want to change the background of the later images
(grey/blue) background to black without affecting the colour of the embryo.  I didn't think this would be a straight forward process on a colour image.  Does anyone have any suggestions?  I have looked at the background subtraction commands and this might be able to get me there but thought this was more for fluorescence images and not sure its the best way..  I also wondered about doing a colour threshold to identify the embryo then setting the pixel value outside of the thresholded embryo to zero if you can do that but i think this will will give a jagged outline to the embryo.

Any ideas would be greatly appreciated.

Thanks,

Matt

--
The University of Edinburgh is a charitable body, registered in Scotland, with registration number SC005336.

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

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