MATLAB: What is the difference between double() and im2double()

Image Processing Toolbox

What is the difference between double() and im2double() ?

Best Answer

The function double() only converts the specified array to a variable of type double, keeping the same values. The function im2double() also normalises to an interval of [0, 1], which is convenient when working with e.g., imshow().
Related Question