imresize is creating negative numbers from a matrix?

I'm doing something like:
image = imread(img);
image = rgb2gray(image);
image = im2double(image);
image = imresize(image);
Throughout the code, except for the last line, every element in the image matrix remains > 0. So why is imresize throwing in negative numbers?

 Réponse acceptée

Walter Roberson
Walter Roberson le 28 Juin 2018

0 votes

"Note: Bicubic interpolation can produce pixel values outside the original range."

Plus de réponses (0)

Catégories

En savoir plus sur Images dans Centre d'aide et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by