LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to rotate an image around the y-axis

Hello

I have a grayscale image which I want to rotate about the y-axis. any idea how to do it?. using a rotation matrix can be done? 

0 Kudos
Message 1 of 7
(7,250 Views)

hi manuel,

 

have a look at this thread https://forums.ni.com/t5/LabVIEW/Rotate-an-image/m-p/2482802#M758765

 

2.png

 

adding a canvas around the input image before applying the rotation matrix will avoid artefacts due to underfitting

 

 

 

Regards,
Alex

0 Kudos
Message 2 of 7
(7,239 Views)

Thanks for answering.

 

Maybe I did not explain properly, i'm trying to rotate the image about the axis y, as shown in figure.

 

Regards

0 Kudos
Message 3 of 7
(7,216 Views)

Hello Manuel33,

 

The image you provided seems to indicate that Alex's solution is what you are looking for (it's not immediately clear where the image you're manipulating with is in relation to the planes in the diagram), could you provide a "before" and "after" example that demonstrates what you are trying to achieve?  Better yet, if you can, please post your code as well to show what you've already done and point out what part you are working on.

 

If all you need is the appearance of a rotation towards or away from the orthogonal plane (this is a 2D image we are talking about, isn't it?) you can achieve this affect by either deleting columns from the image or averaging column subsets.  For example- if you want to have the appearance of rotating 45 degrees, delete or average every other column.  If you want to add a "perspective" effect and taper the "far" edge, thats a bit more complex but I imagine it could also be achieved with selective deletion or averaging of pixels.

 

If you're working with a 3D image, that's a very different question.  You should be able to rotate the object on which the image is overlaid using the Rotate Object VI available in the Graphics & Sound>>3D Picture Control>>Transformations palette.

 

Regards,

Tom L.
0 Kudos
Message 4 of 7
(7,206 Views)

Hi, i´m traying to do something like this "Figure", i´m getting cross-sections of a concentric semisphere, and i want to plot it in 3D graph, but i can´t rotate the image properly.

Download All
0 Kudos
Message 5 of 7
(7,167 Views)

The code work great for vertical lines as show in figure "Line", with 360 images i can  form a 3d reconstruction, however i´m trying to form a reconstruction with 180 images of a concentric sphere, any idea that i can change in my code? 

Download All
0 Kudos
Message 6 of 7
(7,137 Views)

do you know about this thread?

 

If anyone wants to rotate an image around a different axis, they just have to figure out the rotation matrix and replace mine with theirs, so it's fairly scalable

http://forums.ni.com/t5/LabVIEW/got-bored-maybe-this-will-help-someone/m-p/1137515

0 Kudos
Message 7 of 7
(7,104 Views)