I have an image and two points,
and I want to read the pixels between these two points,
and resample them into a small 1×40 array.
I’m using EMGU which is a C# wrapper for OpenCV.
thanks,
SW

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Emgu CV includes method in the
Imageclass for sampling color along a line calledSample.Refer to the manual for the definition. Here’s the link to
Image.Samplein version 2.3.0.You will still have to re-sample/interpolate the points in array returned from
Sampleto end up with a 40 element array. Since there are a number of ways to re-sample, I’ll suggest you look to other questions for that.