im2double(img) vs double(img)

2 次查看(过去 30 天)
Dani D
Dani D 2016-7-17
Hello, What is difference between im2double(img) vs double(img) ? Thanks

回答(1 个)

Azzi Abdelmalek
Azzi Abdelmalek 2016-7-17
编辑:Azzi Abdelmalek 2016-7-17
Try this example, you will see the difference
Im = reshape(uint8(linspace(1,255,25)),[5 5])
out1=double(Im)
out2=im2ddouble(Im)
You can read the help to know exactly what im2double do

类别

Help CenterFile Exchange 中查找有关 Data Type Identification 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by