How to extract a linear slice from an image in OpenCV / EMGU -


i have image , 2 points,
, want read pixels between these 2 points,
, resample them small 1x40 array.
i'm using emgu c# wrapper opencv.
thanks,
sw

sample image

emgu cv includes method in image class sampling color along line called sample.

refer manual definition. here's link image.sample in version 2.3.0.

you still have re-sample/interpolate points in array returned sample end 40 element array. since there number of ways re-sample, i'll suggest other questions that.


Comments

Popular posts from this blog

python - Scipy curvefit RuntimeError:Optimal parameters not found: Number of calls to function has reached maxfev = 1000 -

c# - How to add a new treeview at the selected node? -

java - netbeans "Please wait - classpath scanning in progress..." -