|
Re: Rotation of image: msg#01163lib.opencv
Hi, the code u gave me does rotation. how can i do a rotation then translation of the vector using the same code, thus i may not lose parts of the rotated image. --- In OpenCV@xxxxxxxxxxxxxxx, "Parameswaran" <cegparamesh@...> wrote: > > The code which i gave you cannot prevent losing of data.. > Try some other code, or the one which you already have.. > > Regards, :D > Paramesh. > > --- In OpenCV@xxxxxxxxxxxxxxx, shadi moudallal <shadi_moudallal@> > wrote: > > > > Hi, thx for ur help. > > this function was of grest help to me since it is quick and simple > but the only problem is that when rotating an image it gets out of > bounds. Is there a way to keep it in bounds. > > > > Parameswaran <cegparamesh@> wrote: > > In order to rotate an image, you can use this function: > > > > ================================================================== > > > > IplImage* GetRotatedImage(IplImage *img, int angle, int xPos, int > yPos) { > > > > IplImage *rotatedImg = cvCreateImage(cvGetSize(img), IPL_DEPTH_8U, > > img->nChannels); > > > > CvPoint2D32f center; > > CvMat *mapMatrix = cvCreateMat( 2, 3, CV_32FC1 );; > > > > center.x = xPos; > > center.y = yPos; > > > > cv2DRotationMatrix( center, angle ,1.0, mapMatrix ); > > cvWarpAffine( img, rotatedImg, mapMatrix); > > > > return rotatedImg; > > } > > > > ================================================================== > > > > Regards, :D > > Paramesh. > > > > --- In OpenCV@xxxxxxxxxxxxxxx, "shadi_moudallal" <shadi_moudallal@> > > wrote: > > > > > > Hi, > > > i downloaded the IPLwithIPP in the files link and tried to compile > > > it but it didn't work. It seems there is a ipps.h file missing. > > > i need to use the iplrotate but dont know how and from where to get > > > it. can someone help me. > > > thx > > > > > > > > > --- In OpenCV@xxxxxxxxxxxxxxx, "guy17il" <guy17il@> wrote: > > > > > > > > I found a nice solution if anyone else is interested: > > > > a function named iplRotate. > > > > It's include file is <ipl.h> and should be included before any > > > openCV > > > > includes (didn't work otherwise) - also is order for it to execute > > > > (it compiles and links) you need to put the ipl dll in the project > > > > directory or add the ipl dll path to the system path variable. > > > > > > > > Guy. > > > > > > > > --- In OpenCV@xxxxxxxxxxxxxxx, "guy17il" <guy17il@xxxx> wrote: > > > > > Hi all, > > > > > > > > > > I am trying to ratate an IplImage (90 Clockwise) but there seems > > > to > > > > be > > > > > no way to do this. > > > > > I've searched everywhere - do you know anyway to do this without > > > > > creating a new IplImage with flipped resolution and copying the > > > > buffer > > > > > (also flipped) ? > > > > > This seems to me as a bug-prone process which I am trying to > > > avoid. > > > > > > > > > > Guy. > > > > > > > > > > > > > > > > > > > > > Change settings: http://www.yahoogroups.com/mygroups, select > > Get Emails (get all posts) > > Daily Digest (one summary email per day) > > Read on the web (read posts on the web only)Or Unsubscribe by > mailing OpenCV-unsubscribe@xxxxxxxxxxxxxxx > > > > > > > > > > SPONSORED LINKS > > Open source software Computer vision > > > > --------------------------------- > > YAHOO! GROUPS LINKS > > > > > > Visit your group "OpenCV" on the web. > > > > To unsubscribe from this group, send an email to: > > OpenCV-unsubscribe@xxxxxxxxxxxxxxx > > > > Your use of Yahoo! Groups is subject to the Yahoo! Terms of > Service. > > > > > > --------------------------------- > > > > > > > > > > > > --------------------------------- > > Yahoo! Messenger with Voice. PC-to-Phone calls for ridiculously low > rates. > > > > [Non-text portions of this message have been removed] > > > Change settings: http://www.yahoogroups.com/mygroups, select Get Emails (get all posts) Daily Digest (one summary email per day) Read on the web (read posts on the web only)Or Unsubscribe by mailing OpenCV-unsubscribe@xxxxxxxxxxxxxxx |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: Video resolution: 01163, Kok Jun |
|---|---|
| Next by Date: | Save Mutiple Faces: 01163, oyao16 |
| Previous by Thread: | Re: Rotation of imagei: 01163, Parameswaran |
| Next by Thread: | How can I warp an image from shape A to shape B? Real Time.: 01163, neediss |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |