professor_rumsdiegeige Posted October 3, 2008 Report Share Posted October 3, 2008 Hi, how is it possible to specify the point around which the image is rotated when using Imaq Rotate? thx Sabine Loretnz Quote Link to comment
crelf Posted October 3, 2008 Report Share Posted October 3, 2008 QUOTE (professor_rumsdiegeige @ Oct 2 2008, 08:50 AM) how is it possible to specify the point around which the image is rotated when using Imaq Rotate? No, but you can resize your canvas will irregular borders so that the point about which you want to rotate becomes the centre, and then IMAQ Rotate. Quote Link to comment
professor_rumsdiegeige Posted October 3, 2008 Author Report Share Posted October 3, 2008 QUOTE (crelf @ Oct 2 2008, 03:23 PM) No, but you can resize your canvas will irregular borders so that the point about which you want to rotate becomes the centre, and then IMAQ Rotate. Thank you for your help but I've got some difficulties to understand what you mean: what's this "canvas" and what do you mean by "irregular borders"? Quote Link to comment
crelf Posted October 3, 2008 Report Share Posted October 3, 2008 QUOTE (professor_rumsdiegeige @ Oct 2 2008, 04:02 PM) Thank you for your help but I've got some difficulties to understand what you mean: what's this "canvas" and what do you mean by "irregular borders"? I'm not sure I can explain it any more eloquently than that - but I'll try: you know where you want to rotate it about, so add the appropriate rows and columns of pixels around the image to force that point to become the middle. For example - if you have a 10 x 10 image, and you want to rotate it about (3,3), then add 5 columns of pixels to the left of the image and 5 rows of pixels to the top of the image. Now the (3,3) pixel becomes the (8,8) pixel in the middle of a 15 x 15 pixel image. Then you can rotate about the centre and trim off the extra rows/columns. Quote Link to comment
professor_rumsdiegeige Posted October 4, 2008 Author Report Share Posted October 4, 2008 QUOTE (crelf @ Oct 2 2008, 09:37 PM) I'm not sure I can explain it any more eloquently than that - but I'll try: you know where you want to rotate it about, so add the appropriate rows and columns of pixels around the image to force that point to become the middle. For example - if you have a 10 x 10 image, and you want to rotate it about (3,3), then add 5 columns of pixels to the left of the image and 5 rows of pixels to the top of the image. Now the (3,3) pixel becomes the (8,8) pixel in the middle of a 15 x 15 pixel image. Then you can rotate about the centre and trim off the extra rows/columns. Thank you, now I got it. The problem is solved now. Quote Link to comment
crelf Posted October 4, 2008 Report Share Posted October 4, 2008 QUOTE (professor_rumsdiegeige @ Oct 3 2008, 03:50 AM) Thank you, now I got it. The problem is solved now. :thumbup: Glad to hear it. Quote Link to comment
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.