Professional Documents
Culture Documents
Forum
Docs
Register
Login
Rss feed
Search (advanced search) Google Search search the forum using google
OF forum > openframeworks > extend > Converting from ofxCvGrayscaleImage to cv::Mat and back.
previous next
Print
Pages: [1] Author Topic: Converting from ofxCvGrayscaleImage to cv::Mat and back. (Read 600 times)
george.profenza
Posts: 42
Hello, I'm currently working on a computer vision project with another developer. He's been using ofxOpenCv and I've been using ofxCv so far. I'm using a few cv functions so I'm converting to cv::Mat :
Code: view plain copy to clipboard print ?
01.
but I haven't managed to convert back to an ofxCvGrayScaleImage. I can use cv to convert a cv::Mat to an IplImage and I've tried to use ofxCvGrayScaleImage = operator:
Code: view plain copy to clipboard print ?
01. 02.
but with no luck so far. What is the correct way to convert from a cv::Mat to ofxCvGrayScaleImage ?
Logged
ronan
Posts: 7
I'm completely stuck on this. I'd like to use the openCV (2D) DFT function with my regular images that I load in openframeworks.. I'm using the openCV example project so it is presently: ofxCvGrayscaleImage . Many Thanks
Logged
arturo
Adm inistrator barcelona Posts: 2411
01. 02.
converted by Web2PDFConvert.com
be careful though that you IplImage declaration is in a .h or somewhere where it won't go out of scope when the function ends
Logged
arturo
Adm inistrator barcelona Posts: 2411
01.
*grayImage.getCvImage() = cvimg;
Pages: [1]
previous next
Jump to:
=> extend
go
converted by Web2PDFConvert.com