Quantcast

tounscaled(x,y) function and Invert Y Coordinates

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

tounscaled(x,y) function and Invert Y Coordinates

nstifani
Hello

I would like to report an issue when using Inverted Y coordinates and calling.
toUnscaled(X,Y);

For some reasons the Y values are changed even if the image as no scale.

The walkaround is to call
run("Set Measurements...", "area mean standard modal min centroid center perimeter bounding fit shape feret's integrated median skewness kurtosis area_fraction stack display redirect=None decimal=9");

prior to
run("Measure");
to obtain non inverted Y coordinates
Then call
toUnscaled(X,Y);
and Finally Invert the coordinates
Y=getHeight()-Y;

Loading...