Changing value in the mat
Hello, I have a mat format Mat data = [ 0,0,0,0,255,0,0,255,0,0,0,255,0,0,0,255,0,0,0,0,255,0,0,255,255,255.........]
I would like to change the value of 255 to 1 for the Mat. Is there any instructions that I can use to change the value in a faster way?
I guess here you will find the information you want. If speed is what you are looking for LookUpTable, i.e. LUT(), is the fastest way to access pixel values.