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 Exchange에서 Convert 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