Watch this Author's files
This is fantastic. Thanks.
Very helpful, thanks.
This code is great. It can be sped up dramatically though by rewriting the clipValue function in a vectorized fashion. That is, replace the code in clipValue.m with these two lines:
val(val < valMin) = valMin;
val(val > valMax) = valMax;
for me this sped up conversion from >8s to <0.3s for a 2560 pixels x 1280 pixels image.
Thank You very much. This will certainly help me a great deal!.:)
Thanks Jan. Actually I've uploaded a new version that does the conversion much faster (using reshape on the original matrix, as you suggest). Hopefully the system will update the file soon.
For a faster conversion see Yair's implementation and the comments for http://www.mathworks.com/matlabcentral/fileexchange/24323-screencapture-get-a-screen-capture-of-a-figure-frame-or-component