Login  Register

ROI in matlab

Posted by cnarciso on May 07, 2014; 7:37pm
URL: http://imagej.273.s1.nabble.com/ROI-in-matlab-tp5007620.html

Hello all,

So I have an image that consists of a sheet of cells which I have segmented in an external python program (SeedWater Segmenter). This is nice as it provides me the functionality to correct any mistakes in the segmentation manually so that at the end I have a very high accuracy segmentation of the cells. The output from SeedWater is a colormap of the different regions where each segmented region is given a different, unique RGB color value. My problem is to now try and read these colorized regions as ROIs in ImageJ (note:please feel free to suggest segmentation plugins for cell sheets already implemented in ImageJ, but I was unable to find one that did a decent job (usually my cells are too small) or allowed for manual corrections).

To do this I have two options, each of which presents me with a problem.

Option 1: Matlab -

I can load the colorized segmentation map into Matlab and readily extract the distinct RGB regions as ROIs. But then how to load the Matlab ROIs into ImageJ? I have read quite a few tutorials on how to load ImageJ ROIs into Matlab, but none on how to go the opposite direction.

Option 2: ImageJ directly -

It occurred to me that there is probably also a way to assign pixels to an ROI based on their color value, but I have very little experience working with RGB images in ImageJ and even less experience with defining an ROI from a macro. If anyone has worked on something similar and has a suggestion of how I might be able to go about this, I would appreciate the advice.

Thanks in advance!