Hi people!
I'm from Brazil and a new research at this mailing list. I started my study of image processing with ImageJ. I did some works with image processing in the institute where I studied, but I used the software Envi. I'm doing an algorithm to pattern classification in images, but I'm trying to do with ImageJ the same that I did with Envi. I saw that is not possible. I want to extract the pixels (with the RGB values) of my ROI. I wish to select the region and save the pixels (RGB value) in a file. Someone get to do this? Someone can help me? There is a plugin that do this? Thank you so much. I'm waiting yours answers. -- *Ms. Dalila Serpa* |
Dear Dalila,
Take a look at these plugins: http://rsbweb.nih.gov/ij/plugins/color-histogram.html http://rsbweb.nih.gov/ij/plugins/rgb-measure.html http://rsbweb.nih.gov/ij/plugins/rgb-measure-plus.html It sounds to me, however, like you want to draw a region of interest (ROI) on an image and extract the pixel RGB values into a one dimensional (1D) table and save as a text file, is that correct? If so, I think there is a plugin or macro that already does this, but I can't remember its name. I also wrote a small macro that did part of this operation for part of my PhD project. In my case, I was just extracting the pixel intensity values in an entire 8-bit image (not RGB, not a ROI) into a table. You could generalize this code and incorporate it into a macro/plugin for RGB images and ROIs: for (y=0; y<getHeight; y++) { for (x=0; x<getWidth; x++) { row = x+y*getWidth; setResult("Intensity", row, getPixel(x,y)); } } Doubtless, there are better ImageJ programers than I here on this listserver who might have even more elegant ways of doing this, but at least this gives you an idea of how to get going. John Oreopoulos Research Assistant Spectral Applied Research Richmond Hill, Ontario Canada www.spectral.ca On 2011-12-08, at 11:20 AM, Dalila Serpa wrote: > Hi people! > > I'm from Brazil and a new research at this mailing list. > > I started my study of image processing with ImageJ. I did some works with > image processing in the institute where I studied, but I used the software > Envi. > I'm doing an algorithm to pattern classification in images, but I'm trying > to do with ImageJ the same that I did with Envi. I saw that is not possible. > > I want to extract the pixels (with the RGB values) of my ROI. I wish to > select the region and save the pixels (RGB value) in a file. > > Someone get to do this? Someone can help me? There is a plugin that do this? > > Thank you so much. > > I'm waiting yours answers. > -- > *Ms. Dalila Serpa* |
John,
This is exactly what i want to do. When I wrote my question here, I expected find some solution with a plugin (visually). But, I will evaluate your and others suggestions. Thanks so much! 2011/12/8 John Oreopoulos <[hidden email]> > Dear Dalila, > > Take a look at these plugins: > > http://rsbweb.nih.gov/ij/plugins/color-histogram.html > http://rsbweb.nih.gov/ij/plugins/rgb-measure.html > http://rsbweb.nih.gov/ij/plugins/rgb-measure-plus.html > > It sounds to me, however, like you want to draw a region of interest (ROI) > on an image and extract the pixel RGB values into a one dimensional (1D) > table and save as a text file, is that correct? > If so, I think there is a plugin or macro that already does this, but I > can't remember its name. > > I also wrote a small macro that did part of this operation for part of my > PhD project. In my case, I was just extracting the pixel intensity values > in an entire 8-bit image (not RGB, not a ROI) into a table. You could > generalize this code and incorporate it into a macro/plugin for RGB images > and ROIs: > > for (y=0; y<getHeight; y++) > { > for (x=0; x<getWidth; x++) > { > row = x+y*getWidth; > setResult("Intensity", row, getPixel(x,y)); > } > } > > Doubtless, there are better ImageJ programers than I here on this > listserver who might have even more elegant ways of doing this, but at > least this gives you an idea of how to get going. > > John Oreopoulos > Research Assistant > Spectral Applied Research > Richmond Hill, Ontario > Canada > www.spectral.ca > > > > On 2011-12-08, at 11:20 AM, Dalila Serpa wrote: > > > Hi people! > > > > I'm from Brazil and a new research at this mailing list. > > > > I started my study of image processing with ImageJ. I did some works with > > image processing in the institute where I studied, but I used the > software > > Envi. > > I'm doing an algorithm to pattern classification in images, but I'm > trying > > to do with ImageJ the same that I did with Envi. I saw that is not > possible. > > > > I want to extract the pixels (with the RGB values) of my ROI. I wish to > > select the region and save the pixels (RGB value) in a file. > > > > Someone get to do this? Someone can help me? There is a plugin that do > this? > > > > Thank you so much. > > > > I'm waiting yours answers. > > -- > > *Ms. Dalila Serpa* > -- *Ms. Dalila Serpa* |
Free forum by Nabble | Edit this page |