Login  Register

Re: extract data from binary image

Posted by David Webster on Dec 24, 2009; 7:24pm
URL: http://imagej.273.s1.nabble.com/extract-data-from-binary-image-tp3689922p3689923.html

All,

Whoops, sorry aoutmthenlast post, my finders slipped an gmail di the rest.

Anyway, Rone, try a macro that does

for(y=0; y<height; y++)
{
  for(x=0; x<width; x++)
  {
     v=getPixel(x,y);
     IJ.log(" "+x+"  "+y+"   "+v);
 }
}

David

On Thu, Dec 24, 2009 at 1:18 AM, rona baron <[hidden email]> wrote:

> Hi,
>
> I have a binary image and I would like to save the coordinates of each
> pixel
> and its intensity (0 or 255).
> How do I do it?
>
> Thanks,
> Rona
>