Jump to content

Rotate rectangle in deg.


Recommended Posts

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.

Link to comment

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

post-10515-051716400 1284913530_thumb.pn

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.