define double(img(:,:,1))
Ältere Kommentare anzeigen
can anybody explain double(img(:,:,1))??
Antworten (1)
Wayne King
am 20 Mär. 2012
That code is casting the first "page" of img (a 3D array) to type double.
So perhaps img is uint8 to begin with (or something like that)
img = uint8(ones(256,256,3));
xy = double(img(:,:,1));
class(img)
class(xy)
Kategorien
Mehr zu Vehicle Dynamics Blockset finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!