02-19-2014 06:52 AM
HI,
As a part of of my project i want to rotate images into different angles..!! But that rotated images not seemed like i want. There is some portion not filled.so i attached to images one is my orginal image. and 2nd one is rotated image which is the form i want,in this image the width of black line is important.other parameter can be changed. Can anyone help to solve this problem????
_thanking you
julin
02-19-2014 07:28 AM
Dear RAGIL,
any sample VI, please? What functions are you using to rotate your picture, please?
It seems that your picture is scaled by 1/cos(RotAngle) to fill the existing empty space up to the borders.
Cheers,
02-19-2014 09:46 AM
i am attaching the labview program file below!!!
faithfully
akhilkr
02-19-2014 10:10 AM
02-19-2014 10:13 AM - edited 02-19-2014 10:15 AM
Also, as pointed out above, you want the image to have no empty pixels, achieved presumably by scaling up the image size to fill the image window. IMAQ Rotate has an optional input to set pixels that have no previous value to a desired value, but the nature of rotating a rectangular region to an arbitrary angle and representing it in a rectangular image will be to have dead triangular regions around it. You will need a source image larger than the intended target image and then crop to the good area after rotating.
See this illustration to show what I mean: http://i.stack.imgur.com/KWoeo.jpg
02-19-2014 10:44 AM
its not working!!!
02-19-2014 10:55 AM
02-26-2014 10:08 AM
HI,
can you make the same image by as you said(i.e 1/cos(RotAngle)).I made pic by another method, which was very lengthy program.So can u make same image as i made by your idea...
faithfully akhil kr
02-28-2014 02:30 AM