Ask Your Question

Revision history [back]

accessing to a Matrix cell

Hello

I am implementing some filters on my image, but the point is that when I use abs() and then try to imshow my result image, it's all black. the harris_result is a cv::Mat *harris_result.

cv::MatExpr x = cv::abs(re); harris_results = &x.a;//convert cv::MatExpr to cv::Mat and then when I want to print the content of harris_result

std::cout<<harris_results->at<uchar>(10,100)<<std::endl; harris_result="" is="" a="" cv::mat="" *harris_result<="" p="">

there is no error, but while debugging at this line it stops working.

I appreciate some help

Thanks

click to hide/show revision 2
retagged

updated 2014-06-22 03:38:58 -0600

berak gravatar image

accessing to a Matrix cell

Hello

I am implementing some filters on my image, but the point is that when I use abs() and then try to imshow my result image, it's all black. the harris_result is a cv::Mat *harris_result.

cv::MatExpr x = cv::abs(re); harris_results = &x.a;//convert cv::MatExpr to cv::Mat and then when I want to print the content of harris_result

std::cout<<harris_results->at<uchar>(10,100)<<std::endl; harris_result="" is="" a="" cv::mat="" *harris_result<="" p="">

there is no error, but while debugging at this line it stops working.

I appreciate some help

Thanks