define double(img(:,:,1))

Réponses (1)

Wayne King
Wayne King le 20 Mar 2012

0 votes

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)

Catégories

En savoir plus sur Vehicle Dynamics Blockset dans Centre d'aide et File Exchange

Tags

Question posée :

le 20 Mar 2012

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by