I have an image with all pixel values 0 i.e black image, i want to access pixels at certain image coordinates more then a 100 and change the value to 1 how can i do this using opencv python and for loops if possible?
The whole idea is to create a binary image with white pixel values which are defined by user.
what is the purpose of it ? you probably should avoid writing loops, but prefer opencv or numpy functions.
also note, that "binary" images in opencv are [0,255], not [0,1]
do you want to change the position, or the value of the pixels ? (that's a bit unclear here)
please also have a look at the tutorials