예제 #1
0
  private void CreateBinaryImage(double sherhold) {
    // if(mImageMat!=null||!mImageMat.empty())
    // mImageMat.release();

    mImageMat =
        new BitmapHelper_CV(bitmapHelper_CV.GetROI_byCenterPoint(centerF, 60))
            .Threshold(binaryvalue, Imgproc.THRESH_BINARY);
    imageView.setImageBitmap(BitmapHelper_CV.MatToBitmap(mImageMat));
  }
예제 #2
0
 @Override
 public void onClick(View v) {
   binaryvalue = 1000;
   mImageMat = bitmapHelper_CV.GetROI_byCenterPoint(centerF, 60);
   imageView.setImageBitmap(BitmapHelper_CV.MatToBitmap(mImageMat));
 }