Ask Your Question
0

How to access pixels in a binary image?

asked 2015-01-01 09:52:23 -0600

Uio96 gravatar image

I search the Internet and get the information about how to access pixels in a RGB image.But what about a binary image?

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
1

answered 2015-01-01 11:54:31 -0600

Aly Osama gravatar image

the binary images is made up of uchars , so you can access any pixel in the image using this

binImage.at<uchar>(i,j)
edit flag offensive delete link more

Comments

Thanks a lot.

Uio96 gravatar imageUio96 ( 2015-01-01 18:44:23 -0600 )edit

Question Tools

1 follower

Stats

Asked: 2015-01-01 09:52:23 -0600

Seen: 1,466 times

Last updated: Jan 01 '15