NOTICE! This is a static HTML version of a legacy Fiji BugZilla bug.

The Fiji project now uses GitHub Issues for issue tracking.

Please file all new issues there.

Bug 1158 - Selection changes position when rotated and rotated back by the same angle
Selection changes position when rotated and rotated back by the same angle
Status: RESOLVED FIXED
Product: Fiji
Classification: Unclassified
Component: Other
unspecified
PC Windows
: P5 enhancement
Assigned To: ImageJ Bugs Mailing List
Depends on:
Blocks:
 
Reported: 2015-09-14 20:58 CDT by Linda Fothergill
Modified: 2015-09-16 02:13 CDT
1 user (show)

See Also:


Attachments
"Useful information about your system" copied from the Bug Report Form (52.05 KB, application/vnd.openxmlformats-officedocument.wordprocessingml.document)
2015-09-14 20:58 CDT, Linda Fothergill

Description Linda Fothergill 2015-09-14 20:58:27 CDT
Created attachment 260
"Useful information about your system" copied from the Bug Report Form

When I run the following macro, the resulting polygon selection changes position from the initial polygon. I have tried this on tiff and png files. 

makePolygon(479,637,1003,429,937,335,689,444,604,363,643,463,445,537);
run("Draw");
run("Rotate...", "angle=45");
run("Rotate...", "angle=-45");

When I was testing this problem, it also occurred for squares when the x and y coordinate were not the same - however, I updated my version of Fiji, and this no longer occurs. E.g.:
run("Specify...", "width=100 height=100 x=100 y=300");
run("Draw");
run("Rotate...", "angle=45");
run("Rotate...", "angle=-45");

Is the centre of the object the point of rotation?

Thanks,
Linda
Comment 1 Wayne Rasband 2015-09-15 18:08:17 CDT
This bug is fixed in the latest ImageJ daily build (1.50c11). With the first rotation, the center of the selection's bounding box is used. With subsequent rotations, the center from the first rotation is used.
Comment 2 Linda Fothergill 2015-09-16 02:13:00 CDT
(In reply to Wayne Rasband from comment #1)
> This bug is fixed in the latest ImageJ daily build (1.50c11). With the first
> rotation, the center of the selection's bounding box is used. With
> subsequent rotations, the center from the first rotation is used.

Oh, sorry for bothering you then. Thanks!!