-
Notifications
You must be signed in to change notification settings - Fork 455
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issue when we mix Rotate with BrushTool, EllipseRoiTool and RectangleRoiTool. #579
Comments
Ok after some further deliberation with @swederik, I've come to the conclusion that the issues with the brush and the rois is identical, the only difference being that the brush segmentation isn't rotationally symmetric. Let me demonstrate, I've drawn 4 'segmentations' that fill up the canvas, as well as a rect and circle: Then rotating ~30 degrees clockwise, the image gets skewed: What is really needed is a rotation of the entire canvas. I'm going to play with transform of the tools in image rendered, but I feel this is a more fundamental issue. Tagging @chafey , as @swederik said you were the author of the rotation stuff in cornerstone core, do you have any insight into how we could fix this issue globally? Thanks, |
Just confirming I'm now working on this. |
This is fixed for the brush layer for arbitrary rotations + h/v flips in #755. The issues with the elliptical and rectangular ROI tools remain for now. |
…t on free rotate. The rectanglur and elliptical ROI tools now correctly rotate with the image. cornerstonejs#579
Thanks @daniel2101 for fixing the rectangles and ellipses in #916 ! :) |
Hey can you please help me out of removing the brush tool data from the canvas I didn't find solution for that. |
Steps to reproduce:
For strict 90 degree rotations, the rectangle and circle stay intact. This is because the geometry is based off two control points, which reference a certain pixel, and are safe to rotation. Tools like angle, length, freehand and probe that only draw straight lines between control points are safe to rotation.
The brush renders incorrectly even with 90 degree rotations (try drawing around an object in the demo), and you cannot draw in the correct place. It seems to do some strange image flip, if you compare a rotate of a circular brush to an overlayed circular roi tool.
Thanks @galelis
The text was updated successfully, but these errors were encountered: