extract data from binary image

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

extract data from binary image

rona baron
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
Reply | Threaded
Open this post in threaded view
|

Re: extract data from binary image

David Webster
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
>