MATLAB: Read pixel by pixel value from two images simultaneously

gray levelImage Processing Toolbox

I want to get pixel by pixel value from two images at once. For example, Get 1st pixel value of both images and so on. How can I do this?

Best Answer

You can't get them simultaneously (unless you're using the Parallel Computing Toolbox). You can get one, then the other, like this:
grayLevel1 = grayImage1(row, column);
grayLevel2 = grayImage2(row, column);
Related Question