Login  Register

Change pixel resolution

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options Options
Embed post
Permalink
Reply | Threaded
Open this post in threaded view
| More
Print post
Permalink

Change pixel resolution

Weller Andrew Francis
53 posts
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
Reply | Threaded
Open this post in threaded view
| More
Print post
Permalink

Re: Change pixel resolution

Vincenzo Della Mea
37 posts
You perhaps have set the scale (with Analyze:Set Scale) some time  
ago, choosing "Global".  Change it.
Vincenzo

> 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.
Reply | Threaded
Open this post in threaded view
| More
Print post
Permalink

Re: Change pixel resolution

Wayne Rasband
1011 posts
In reply to this post by Weller Andrew Francis
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