Click here to Skip to main content
15,919,749 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: afxloadlibrary Pin
PJ Arends19-Jul-04 0:38
professionalPJ Arends19-Jul-04 0:38 
Generalplane seats Pin
rex4417-Jul-04 13:40
rex4417-Jul-04 13:40 
GeneralRe: plane seats Pin
Johan Rosengren17-Jul-04 20:45
Johan Rosengren17-Jul-04 20:45 
GeneralA crashing DC... Pin
0v3rloader17-Jul-04 11:36
0v3rloader17-Jul-04 11:36 
GeneralRe: A crashing DC... Pin
Michael Dunn17-Jul-04 14:12
sitebuilderMichael Dunn17-Jul-04 14:12 
GeneralRe: A crashing DC... Pin
0v3rloader17-Jul-04 21:23
0v3rloader17-Jul-04 21:23 
GeneralRe: A crashing DC... Pin
Jörgen Sigvardsson18-Jul-04 0:03
Jörgen Sigvardsson18-Jul-04 0:03 
GeneralAffine Transformation Pin
wyoung17-Jul-04 11:20
wyoung17-Jul-04 11:20 
Hi,

I have a few questions for you image processing developers out there. I am currently mapping a somewhat distorted (mostly skewed) image into a flat image plane. My Prof. told me to use Affine transformation to solve the problem. I first detect the corners of the parallelogram (distorted image) and use it as my anchors (A, B, C, D). My transformation matrix is:

| a b c |
| d e f |
| 0 0 1 | where a, b, c, d, e and f are matrix coefficents. The two zeros at the bottom means that there is little perpsective distortion so the values are not needed. At first, I tried to calculate the coefficents by simple linear alegbra.

| a b c | |Ax| |Ax'|
| d e f | |Ay| = |Ay'|
| 0 0 1 | |1 | |1 | where the Ax' and Ay' are the coordinates of the newly mapped space. A', B', C' and D' are the corners of the image space I am mapping to.

Since I know Ax, Ay, Ax' and Ay', I thought I would have more than enough information to solve the matrix. I did use that matrix but I starting getting warped images with coordinates off the plane. I realized there could be multiple solutions so I needed to use Least Squares approximation to find the best coefficients. But Least Squares seem to be very difficult to program and I havent found any code to help me.

Does anyone know of an efficient way to solve for the matrix coefficients? Or, if you have a better way to transform the image into another parameter space, please tell me. Any help is appreciated.

Thanks in advance!

Engineer in progress... ~wyoung
GeneralRe: Affine Transformation Pin
Andrew Walker17-Jul-04 18:27
Andrew Walker17-Jul-04 18:27 
GeneralAC-3 Pin
Alexander M.,17-Jul-04 10:03
Alexander M.,17-Jul-04 10:03 
GeneralRe: AC-3 Pin
bikram singh17-Jul-04 10:06
bikram singh17-Jul-04 10:06 
GeneralThreading and non User-Interface Classes Pin
0v3rloader17-Jul-04 6:35
0v3rloader17-Jul-04 6:35 
GeneralRe: Threading and non User-Interface Classes Pin
Antti Keskinen17-Jul-04 7:04
Antti Keskinen17-Jul-04 7:04 
GeneralRe: Threading and non User-Interface Classes Pin
0v3rloader17-Jul-04 7:30
0v3rloader17-Jul-04 7:30 
GeneralRe: Threading and non User-Interface Classes Pin
PJ Arends17-Jul-04 7:39
professionalPJ Arends17-Jul-04 7:39 
GeneralRe: Threading and non User-Interface Classes Pin
Antti Keskinen18-Jul-04 3:29
Antti Keskinen18-Jul-04 3:29 
GeneralStatic lib Pin
Atlence17-Jul-04 5:46
Atlence17-Jul-04 5:46 
GeneralRe: Static lib Pin
Antti Keskinen17-Jul-04 7:09
Antti Keskinen17-Jul-04 7:09 
GeneralControl similar to Windows 2000 peroformance tab Pin
Azghar Hussain17-Jul-04 5:00
professionalAzghar Hussain17-Jul-04 5:00 
GeneralRe: Control similar to Windows 2000 peroformance tab Pin
Johan Rosengren17-Jul-04 5:22
Johan Rosengren17-Jul-04 5:22 
Generalabout using ActiveX in dll Pin
yingkou17-Jul-04 3:06
yingkou17-Jul-04 3:06 
GeneralRe: about using ActiveX in dll Pin
bikram singh17-Jul-04 9:01
bikram singh17-Jul-04 9:01 
GeneralRe: about using ActiveX in dll Pin
yingkou17-Jul-04 14:15
yingkou17-Jul-04 14:15 
GeneralRe: about using ActiveX in dll Pin
bikram singh17-Jul-04 22:35
bikram singh17-Jul-04 22:35 
GeneralRe: about using ActiveX in dll Pin
yingkou18-Jul-04 3:06
yingkou18-Jul-04 3:06 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.