URL
https://opencores.org/ocsvn/matrix3x3/matrix3x3/trunk
Subversion Repositories matrix3x3
[/] [matrix3x3/] [trunk/] [fv/] [read_image_16bit.m] - Rev 2
Go to most recent revision | Compare with Previous | Blame | View Log
X = imread('onion_16bit.tif'); R = X(:,:,1); G = X(:,:,2); B = X(:,:,3); Y = zeros(size(X,1), 3, size(X,2), 'uint16'); Y(:,1,:) = R; Y(:,2,:) = G; Y(:,3,:) = B; dlmwrite('x.txt', Y, 'delimiter', ' ' , 'newline', 'pc', 'precision', '%3.4X');
Go to most recent revision | Compare with Previous | Blame | View Log