What is the range of double??

Is it necessary to convert the uint8 data type to double for processing any image??

回答 (3 件)

David Sanchez
David Sanchez 2013 年 6 月 3 日

0 投票

A colour image has to be < height x width x 3 > uint8 matrix.

1 件のコメント

Jan
Jan 2013 年 6 月 3 日
No, color images can be stored as double array also.

サインインしてコメントする。

Iain
Iain 2013 年 6 月 3 日

0 投票

No.
Some image processing functions will need it to be converted.
The range of double is plus and minus 0, 10^-318 to 10^318, with about 16 significant figures.

1 件のコメント

Jan
Jan 2013 年 6 月 3 日
編集済み: Jan 2013 年 6 月 3 日
But the range used for color images is from 0 to 1 inclusively. Therefore there is no strong relation between the question and this correct statement.

サインインしてコメントする。

Jan
Jan 2013 年 6 月 3 日

0 投票

It depends on the detail hidden in the term "processing". A lot of functions work with UINT8 also, but some don't.

カテゴリ

ヘルプ センター および File ExchangeConvert Image Type についてさらに検索

タグ

質問済み:

2013 年 6 月 3 日

Community Treasure Hunt

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

Start Hunting!

Translated by