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

回答 (1 件)

Wayne King
Wayne King 2012 年 3 月 20 日

0 投票

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)

カテゴリ

ヘルプ センター および File ExchangeInteractive Control and Callbacks についてさらに検索

タグ

質問済み:

2012 年 3 月 20 日

Community Treasure Hunt

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

Start Hunting!

Translated by