pravin Posted September 18, 2010 Report Posted September 18, 2010 hi all, i want to rotate a rectangle without using ni vision toolkit only using simple vi and using bounding rectangle so. can any one tell me how to rotate rectanglein degree coz i'm new in vision. reply Quote
Francois Normandin Posted September 18, 2010 Report Posted September 18, 2010 hi all, i want to rotate a rectangle without using ni vision toolkit only using simple vi and using bounding rectangle so. can any one tell me how to rotate rectanglein degree coz i'm new in vision. reply Hi Pravin, Check in the Mathematics/Geometry palette. There is a 2D rotation matrix VI. (2D Cartesian Coordinates Rotation.vi) See this link for how it works. Quote
pravin Posted September 19, 2010 Author Report Posted September 19, 2010 Thanks for reply, but i want to rotate the rectangle with formula like , such as left top , right top, right bottom, left bottom, left top with x y co-ordinates with various degree of rotation. Quote
Francois Normandin Posted September 19, 2010 Report Posted September 19, 2010 I think that's what the function does behind the scene. A rectangle is simply one case of any number of geometries you can make with this function's inputs. NI Vision rotation algorithm is more complete because it will interpolate colours when the rotated pixel positions are not integers, but otherwise it's the same. The rotation matrix in 2D is exactly what you state above. Rotation of points.vi Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.