I have an image matrix which has a size of "mxnx3 uint8". I created a zero matrix by using zeros(m,n) (lets call it "image_filled"). So that, mxn double matrix is formed. Then I tried to copy the pixels of image matrix sample by sample to the zero matrix. I figured out that there has been a contrast difference between two images. Why this happens? How can I fix it?
Note: Image on the left is image_filled. Right side is original_image. Please do not mind the black lines on the images
Thanks so much.