Ask Your Question

How to extract the profile data from the Mat?

asked 2020-07-16 00:12:08 -0500

Luckygg gravatar image

Hi all.

I have a question about extracting profile data from the Mat.

I would like to set the line and extract the profile data from belonging to the line.

The following image is an example of what I want to do. image description

Is it possible to do it in OpenCV?

Thank you.

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2020-07-16 01:58:14 -0500

berak gravatar image

if you can use c++, there is the LineIterator

edit flag offensive delete link more


...and the Plot2D class to draw nice line charts (which is part of the extra modules, so it isn't included by default, you need to build OpenCV yourself to use it)

kbarni gravatar imagekbarni ( 2020-07-16 10:18:42 -0500 )edit

sorry, I'm so late. I can solve it using the LineIterator. Thank you so much :)

Luckygg gravatar imageLuckygg ( 2020-07-30 20:59:34 -0500 )edit

Question Tools

1 follower


Asked: 2020-07-16 00:12:08 -0500

Seen: 113 times

Last updated: Jul 16 '20