emgucv - Homography in Emgu CV 3.0 -


i newbie in image processing. want homography image capturing camera. can me homography capture image ? thank much

this i've done , doesn't work. i'm stuck

image<bgr, byte> rgb_image = capturekamera1.queryframe(); image<bgr, byte> destimage = new image<bgr, byte>(352, 288);  imagebox1.image = rgb_image;  double[,] srcp = { { 74, 82 }, { 281, 81 }, { 281, 211 }, { 68, 205 } }; double[,] dstp = { { 81, 7 }, { 160, 7 }, { 36, 158 }, { 207, 158 } }; double[,] homog = new double[3, 3];  matrix<double> srcpm = new matrix<double>(rgb_image); matrix<double> dstpm = new matrix<double>(destimage); matrix<double> homogm = new matrix<double>(homog);  cvinvoke.cvgetaffinetransform(srcpm.ptr, dstpm.ptr, homogm.ptr); cvinvoke.cvperspectivetransform(rgb_image.ptr, destimage.ptr, homogm.ptr);  imagebox2.image = destimage; 

check this method. has 2 constructors choose better you.


Comments

Popular posts from this blog

dns - How To Use Custom Nameserver On Free Cloudflare? -

python - Pygame screen.blit not working -

c# - Web API response xml language -