To use functions in OpenCV like cvSmooth or cvAdaptiveThreshold you must have the data of your VideoCapture in an IplImage object. VideoCapture capture; Mat grayImage; IplImage *imgSrc, *imgResult; imgSrc = cvCreateImage(cvSize(640, 480), IPL_DEPTH_8U, 1); imgResult = cvCreateImage(cvSize(640, 480), IPL_DEPTH_8U, 1);; if (!capture.isOpened()) { cout << "Can not open a capture object." << endl; return… Read More

I’ve search long time for having result on this problem. I want to use the object of IplImage, which data should be filled from Mat. If you using the simple solution found on stackoverflow, then you can’t access the methods of the IplImage object. Mat matImage; IplImage iplImage; iplImage = cvCreateImage(cvSize(640,480), IPL_DEPTH_8U, 1); iplImage->imageData =… Read More

My problem was to create a dynamic table and not hard xml-coded. So I’ve wrote a table class to create it programmatically. The created table has also borders. TableGenerator class public class TableGenerator { private final Context mContext; private TableLayout mTable; private TableLayout.LayoutParams rowParams = new TableLayout.LayoutParams(); private TableRow.LayoutParams colParams = new TableRow.LayoutParams(); public TableGenerator(Context… Read More