|
|
@ -174,7 +174,7 @@ public class ColorBlobDetectionActivity extends Activity implements OnTouchListe |
|
|
|
mDetector.process(mRgba); |
|
|
|
mDetector.process(mRgba); |
|
|
|
List<MatOfPoint> contours = mDetector.getContours(); |
|
|
|
List<MatOfPoint> contours = mDetector.getContours(); |
|
|
|
Log.e(TAG, "Contours count: " + contours.size()); |
|
|
|
Log.e(TAG, "Contours count: " + contours.size()); |
|
|
|
Core.drawContours(mRgba, contours, -1, CONTOUR_COLOR); |
|
|
|
Imgproc.drawContours(mRgba, contours, -1, CONTOUR_COLOR); |
|
|
|
|
|
|
|
|
|
|
|
Mat colorLabel = mRgba.submat(4, 68, 4, 68); |
|
|
|
Mat colorLabel = mRgba.submat(4, 68, 4, 68); |
|
|
|
colorLabel.setTo(mBlobColorRgba); |
|
|
|
colorLabel.setTo(mBlobColorRgba); |
|
|
|