title: How to extract an intensity profile along a line?
body: <p>Is there an out-of-the-box funcion in OpenCV to extract an intensity profile from an image along a line, something like the <a href="https://mathworks.com/help/images/intensity-profile-of-images.html" rel="nofollow noreferrer"><code>improfile</code></a> function in MATLAB?</p>