title: How to get the pixel values of a Black and white image in java
body: <p>I am new to image processing. I am trying to get the pixel values of an image in Black and white. I have searched on here but cannot find the right way to go about it. I saw a lot of post on RGB values but am looking for a sample with specifically black and white values which i believe would be an M x N x 1  array. I was wondering how this can be accomplished in java. </p>