I recently posted a macro I wrote that rotates selected objects using the ferets angle - see link.
Briefly this macro: 1) selects an object using a threshold; 2) rotates the wing on its’ ferets angle; 3) re-selectes the wing using another threshold (which is where the issue lies); 4) measures three sections of the re-selected and rotated object.
However, in this macro (at step 3) I reselect the wing and make a new ROI using a threshold method.
However, for some images the threshold method does not work well on the rotated image. Perhaps because that threshold has already been applied.
This leads me to my question:
Is there a way to rotate the ROI outline of the selected image with the image?? - i.e. the outline would move with the object when rotated and update in the ROI manager.
Is there a way to remove a previously applied threshold? SO I can then use the same original threshold to re-sekect the rotated wing?
Example images and the macro I am using can be found following the link provided (instead of re-posting it all again).
Thank you for your help in advance.