MATLAB Answers

How to convert image array to double array?

26 views (last 30 days)
Mr M.
Mr M. on 18 Feb 2015
Commented: Stephen Cobeldick on 18 Feb 2015
filter.*image is not working, because filter is a double array and image is an integer array. I think MATLAB should convert integer to double by default in this case, but how can I do by hand?

Accepted Answer

Viju
Viju on 18 Feb 2015
Take your integer array - let's call it 'intArray' and do the following:
dblArray = double(intArray);

  0 Comments

Sign in to comment.

More Answers (0)

Community Treasure Hunt

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

Start Hunting!

Translated by