Ask Your Question

Janrex's profile - activity

2019-01-26 04:37:39 -0600 commented answer How to do horizontal projection in opencv using java?

hi! i tried this answer but its giving me this error: Exception in thread "main" java.lang.UnsupportedOperationException

2019-01-24 19:43:14 -0600 asked a question How to do horizontal projection in opencv using java?

How to do horizontal projection in opencv using java? I have a mat file that contains a binarized image and i would like

2019-01-24 08:20:07 -0600 received badge  Enthusiast
2019-01-23 08:31:03 -0600 asked a question How can i remove horizontal lines(stave) in a sheet music image?

How can i remove horizontal lines(stave) in a sheet music image? I'm try to make an app that will take an image input of

2018-11-15 07:05:48 -0600 commented question Binarizing using AdaptiveThreshold turens black image to white

the black part should be retained right? But in this case only the line that seperates the black and white remains black

2018-11-14 09:17:19 -0600 asked a question Binarizing using AdaptiveThreshold turens black image to white

Binarizing using AdaptiveThreshold turens black image to white I use this line of code for binarizing images: Imgproc.a

2018-11-14 09:06:19 -0600 commented question How to get pixel values of a binarized image in android studio?

@berak Okay I' tried using float and i got 1.0 when i checked the value of a white pixel. Is that correct? also what doe

2018-11-14 08:39:01 -0600 commented question How to get pixel values of a binarized image in android studio?

@berak. The reason I'm doing this is that my groupmate created a for loop that will be used in striding for CNN and he n

2018-11-14 08:30:10 -0600 commented question How to get pixel values of a binarized image in android studio?

@berak is it still possible to get the pixel value of a mat and store that pixel value in an element of an array?

2018-11-14 08:23:36 -0600 commented question How to get pixel values of a binarized image in android studio?

@berak changed it back to bytes and I check what value bytes[0] have and its -1. which is odd.

2018-11-14 08:20:15 -0600 commented question How to get pixel values of a binarized image in android studio?

Changed it back to bytes and I check what value bytes[0] have and its -1. which is odd.

2018-11-14 07:46:59 -0600 commented question How to get pixel values of a binarized image in android studio?

@berak I treid the imageBW.get(0,0,bytes) and its giving me this error java.lang.UnsupportedOperationException: Mat data

2018-11-14 07:31:59 -0600 commented question How to get pixel values of a binarized image in android studio?

@berak I treid the imageBW.get(0,0,bytes) and its giving me this error java.lang.UnsupportedOperationException: Mat data

2018-11-13 18:49:43 -0600 asked a question How to get pixel value of a binary image.

How to get pixel value of a binary image. How to get the values of a binarized image? I have this line of code that turn

2018-11-13 11:04:38 -0600 commented question How to get pixel values of a binarized image in android studio?

@berak there was an error on the first line it says "incompatible types. required int, found long".

2018-11-13 11:02:11 -0600 commented question How to get pixel values of a binarized image in android studio?

okay thanks. This helped a lot!

2018-11-13 10:56:41 -0600 commented question How to get pixel values of a binarized image in android studio?

@berak. last question what kind of value would be stored in every element of the array? I really dont know anything abou

2018-11-13 10:35:18 -0600 commented question How to get pixel values of a binarized image in android studio?

@berak I need to save it in a int array. and convert it to bitmap this is an experiment to test if what I'm thinking is

2018-11-13 10:29:22 -0600 commented question How to get pixel values of a binarized image in android studio?

@berak I would like to simply see what value each pixel of a binary image is and store them in an int array. i would use

2018-11-13 10:25:49 -0600 commented question How to get pixel values of a binarized image in android studio?

how can i store them? I would like to store the pixel values in an int array.

2018-11-13 10:23:54 -0600 marked best answer How can I improve the binarization of image in my sample app

I'a practicing in proprocessingiages in android studio and I want to improve the binarihiszation of images in my program, for example i have this image: image description

and my program is binarizing it to this:image description I would like to be able to maintain the horizontal lines(staff lines) for a horizontal line detection.

here is the piece of my code for the grayscale and binary: public void convGray(View view) { Mat Rgba = new Mat(); Mat grayMat = new Mat(); Mat imageBW = new Mat();

    BitmapFactory.Options o = new BitmapFactory.Options();
    o.inDither=false;
    o.inSampleSize=4;

    int width =   imageBitmap.getWidth();
    int height = imageBitmap.getHeight();

    grayBitmap = Bitmap.createBitmap(width,height,Bitmap.Config.RGB_565);

    //bitmap to Mat

    Utils.bitmapToMat(imageBitmap,Rgba);
    Imgproc.cvtColor(Rgba,grayMat,Imgproc.COLOR_RGB2GRAY);
    Imgproc.threshold(grayMat,imageBW,100,255,Imgproc.THRESH_BINARY);
    Utils.matToBitmap(imageBW,grayBitmap);
    imageView.setImageBitmap(grayBitmap);
}
2018-11-13 10:23:54 -0600 received badge  Scholar (source)
2018-11-13 10:23:54 -0600 commented answer How can I improve the binarization of image in my sample app

this solved it! thanks can i ask what 11 and 2 is?

2018-11-13 10:19:25 -0600 asked a question How to get pixel values of a binarized image in android studio?

How to get pixel values of a binarized image in android studio? I want to get the pixel value of a binarized image and s

2018-11-13 08:46:34 -0600 commented question How can I improve the binarization of image in my sample app

@Hatmpatn That s the answer that I went for. I haven't posted the answer here because it needs 2 days before answering y

2018-11-13 04:25:42 -0600 asked a question How can I improve the binarization of image in my sample app

How can I improve the binarization of image in my sample app I'a practicing in proprocessingiages in android studio and

2018-11-13 04:25:24 -0600 asked a question How can I improve the binarization of image in my sample app

How can I improve the binarization of image in my sample app I'a practicing in proprocessingiages in android studio and