Ejemplo n.º 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));
  }
Ejemplo n.º 2
0
        @Override
        public void onClick(View v) {
          String path = GlobleParam.Create().getBinaryTestImagePath();

          if (DirectoryUtils.CreateorOpenDirectory(new File(path), path)) {
            String name = "BT_" + centerF.toString() + "_" + binaryvalue;
            boolean result =
                BitmapHelper.SaveintoFile(
                    BitmapHelper_CV.MatToBitmap(mImageMat), path, name, CompressFormat.JPEG);
            ToastHelper.ShowSaveStateToast(ABinaryTest.this, result);
          } else {
            ToastHelper.ShowNotFoundFileToast(ABinaryTest.this);
          }
        }
Ejemplo n.º 3
0
 @Override
 public void onClick(View v) {
   binaryvalue = 1000;
   mImageMat = bitmapHelper_CV.GetROI_byCenterPoint(centerF, 60);
   imageView.setImageBitmap(BitmapHelper_CV.MatToBitmap(mImageMat));
 }