Ask Your Question

How to resize a Mat in Opnecv4Android

asked 2013-04-22 02:35:43 -0500

s4eed gravatar image

I need to resize a Mat inside Java. I know that I can use Resize function in c++. But how to resize it in Java?

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2013-04-22 02:43:44 -0500

NightLife gravatar image

updated 2013-04-22 03:53:53 -0500

Andrey Pavlenko gravatar image

In OpenCV4Android you can use Imgproc.resize(src, dst, dsize) or Imgproc.resize(Mat src, Mat dst, Size dsize, double fx, double fy, int interpolation)

Just in case you use JavaCV may be you can find your answer HERE.

edit flag offensive delete link more


The same call: Imgproc.resize() throws an Exception:

OpenCV Error: Assertion failed (func != 0) in cv::resize, file ........\opencv\modules\imgproc\src\imgwarp.cpp, line 1910...

Maybe you know why? Thx

reem gravatar imagereem ( 2014-04-09 11:05:48 -0500 )edit

Question Tools


Asked: 2013-04-22 02:35:43 -0500

Seen: 6,509 times

Last updated: Apr 22 '13