To resolve issues starting MATLAB on Mac OS X 10.10 (Yosemite) visit: http://www.mathworks.com/matlabcentral/answers/159016
I've a text file with ',' delimiter with the data from the image in memory.
I have parsed it to get a Matrix then an image after converting the data to uint8. I have the same image taken with other API's.
The data read by both pixel-by-pixel looks same but display saturates at high intensity areas. i.e Display is different even though sum(sum(abs(Mat1-Mat2))) = 0
M = textread('alphabet.txt','%d','delimiter',',');
B1 = vec2mat(M); %Converts the column vector to 1280X1024 Matrix (See link for actual fn)
B1 = uint8(B1);
B2 = imread('Test.bmp');
Sum_of_abs_diff = sum(sum(abs(B1-B2))) Max_Diff = max(max(B1-B2)) %Both are Zero pause(2) close all; end
All code and data with images are here. Run Test.m