2014-11-14 01:15:22 -0600 | asked a question | complie file but error during running include <opencv2 core="" core.hpp="">include <opencv2 highgui="" highgui.hpp="">include <opencv2 imgproc="" imgproc.hpp="">include <stdlib.h> // for std::randvoid salt(cv::Mat image, int n) { } // This is an extra version of the function // to illustrate the use of cv::Mat_ // works only for a 1-channel image void salt2(cv::Mat image, int n) { // or with references: // cv::Mat_<uchar>& im2= reinterpret_cast<cv::mat_<uchar>&>(image); } int main() { // open the image cv::Mat image= cv::imread("lena512color.tiff",1); // image is resized for book printing cv::resize(image, image, cv::Size(), 0.6, 0.6); } The code is compiling fine but when I run it provides me following error First-chance exception at 0x751a2f71 in addNoise_img.exe: Microsoft C++ exception: cv::Exception at memory location 0x0058b4d8.. Unhandled exception at 0x751a2f71 in addNoise_img.exe: Microsoft C++ exception: cv::Exception at memory location 0x0058b4d8.. The program '[1448] addNoise_img.exe: Native' has exited with code 0 (0x0). |
2014-11-10 23:59:45 -0600 | commented answer | newbie: lookin for process realtime camera capture image processing Thanks Berak, I understood the problem now Do you let me know the book as beginner because the I following seems to be very old |
2014-11-10 23:54:16 -0600 | received badge | ● Scholar (source) |
2014-11-10 04:35:23 -0600 | asked a question | newbie: lookin for process realtime camera capture image processing Plz let me know the error in this code: Its not working when I capture image from camera but works when a still image from disk is taken |