To change the scale to pixels enter zero as the "Distance in Pixels"
in the Analyze>Set Scale dialog. In a macro, use
run("Set Scale...", "distance=0");
Check "Global" in the dialog to use a pixel scale for all images
opened during the current session, or use
run("Set Scale...", "distance=0 global");
in a macro
-wayne
On Jul 4, 2006, at 5:11 AM, Andy Weller wrote:
> Dear all,
>
> When I run this command it includes particles that are too
> small (I don't need):
>
> run("Analyze Particles...", "size=0.5-Infinity circularity=0.00-1.00
> show=Masks clear include");
>
> So I change the size to something silly like "size=500",
> but it appears that this is too big - it shouldn't be!
>
> When I check my images, the resolution appears to say "3.84x2.88
> (768x576)"- strange?! My images are 'really' 768x576 not 3.84x2.88
> and I feel that run("Analyze Particles...") is working on the wrong
> resolution.
>
> How can I implement a pixel resolution conversion within my
> macro so that I open an image and the 1st thing I do is tell it
> to use the 768x576 resolution, not the 3.84x2.88 resolution? For
> example:
>
> open(image);
> CHANGE RESOLUTION TO 768x576
> do imaging stuff...
>
> Many thanks, Andy