Remember a black and white image has values 0 and 255. So if you want 0 and 1 then either:
image = image.ThresholdBinary(new Gray(50), new Gray(255));
for (int v = 0; v < image.Height; v++)
{
for (int u = 0; u < image.Width; u++)
{
int a = image.Data[v, u, 0] & 1;
}
}
OR
image = image.ThresholdBinary(new Gray(50), new Gray(1));
for (int v = 0; v < image.Height; v++)
{
for (int u = 0; u < image.Width; u++)
{
int a = image.Data[v, u, 0];
}
}
In this example we are using the Data property of the image.
http://www.emgu.com/wiki/index.php/Working_with_Images[
^]