Closed arrow53 closed 2 years ago
It is possible actually. The function Figure::show
manage a cv::Mat object.
After the function draw is called, in the sub variable you've your graph as a cv::Mat object. You can gen get directly from that.
I'm sorry for the late reply, I just used this library but I think this question was interesting!
It has been a while since you posted, but in case this is still relevant, #27 adds Figure::drawFit
, which takes a cv::Mat
and draws the figure. See Figure::drawFile
for an example on how to use drawFit
.
@leonardvandriel wow, this is a great addition to c++ plotting!
I'd like to be able to write the figure to an image buffer. Is there a way to plot to a cv::Mat or convert the figure to a Mat?