07-07-2013 07:09 AM
Hi,
I have overlaid two image over a continous image coming from camera. I want to rotate the overlaid image by the amount of degrees i specify. I have attached files.
07-07-2013 11:03 AM
Hi NapDynamite,
were you looking for something like this:
http://zone.ni.com/reference/en-XX/help/371361J-01/gmath/2d_cartesian_coordinate_rotation/
?
Unfortunately, I can't look at your project, as I don't have IMAQ on this machine.
Regards,
Alex
07-07-2013 12:14 PM
While I know and understand the math behind rotations, I'd hesitate before trying to write an Image Rotation algorithm because of the need to "mix" pixels. Fortunately, there's an IMAQdx function IMAQ Rotate Front Panel that might do the trick for you [I've not used it, myself].
07-07-2013 12:43 PM
Hi Bob,
I have tried using IMAQ rotate for this purpose, but it just messes up the whole overlaid picture. I think I need more brainstorming because I guess it won't rotate unless I play with the pixels and try to change thier positions ( just spit-balling). Meanwhile, please have a look at my VI and if you hit some bright idea, pleas elet me know. Help would be much appreciated. 🙂
Regards.
07-07-2013 12:54 PM
Hi Bob,
I have attached a VI. Just select any image to overlay, change angle of rotation to 1 degree and see what happens. Instead of just rotating 1 degree, it complete the whole circle and the overlaid image gets messed up. Please take a look.
Regards.
07-07-2013 01:15 PM
@NapDynamite wrote:
Hi Bob,
I have attached a VI. Just select any image to overlay, change angle of rotation to 1 degree and see what happens. Instead of just rotating 1 degree, it complete the whole circle and the overlaid image gets messed up. Please take a look.
Regards.
A couple of points.
07-07-2013 01:27 PM
Hi bob,
Sorry, that was juat a signature I use. Removed it 🙂
I have attached the VI again; I previously forgot to save it.
Regards.
07-07-2013 01:28 PM
Hi bob,
Sorry, that was juat a signature I use. Removed it
I have attached the VI again; I previously forgot to save it.
Regards.
07-07-2013 04:04 PM - edited 07-07-2013 04:06 PM
@Bob_Schor wrote:
While I know and understand the math behind rotations, I'd hesitate before trying to write an Image Rotation algorithm because of the need to "mix" pixels. Fortunately, there's an IMAQdx function IMAQ Rotate Front Panel that might do the trick for you [I've not used it, myself].
good argument, as we don't have infinite resolution, artifacts are bound to occur. I didn't take this in consideration.
When reducing the resolution to 50 % of the input image, artifacts may be avoided:
but I guess this is not a favorable option.
Regards,
Alex
07-08-2013 10:39 AM
Hi Alex,
Could you pass me the VI you made?