matlab - how to retrieve original matrix from RGB image? -


in matlab, how retrieve original matrix rgb image? case, have 50x360 matrix. after imagesc, save jpeg file. , now, need load matrix(50x360) jpeg file. there anyway it? if use imread, matrix dimension 1366x628x3 different 50x360. thanks.

like this:

im = imread('image.jpg') size(im) ycoord = 20; xcoord = 20; im(ycoord,xcoord,1) %for r im(ycoord,xcoord,2) %for g im(ycoord,xcoord,2) %for b 

Popular posts from this blog

How to calculate SNR of signals in MATLAB? -

c# - Attempting to upload to FTP: System.Net.WebException: System error -

ios - UISlider customization: how to properly add shadow to custom knob image -