Borrar filtros
Borrar filtros

imresize is creating negative numbers from a matrix?

6 visualizaciones (últimos 30 días)
Real Name
Real Name el 28 de Jun. de 2018
Respondida: Walter Roberson el 28 de Jun. de 2018
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?

Respuesta aceptada

Walter Roberson
Walter Roberson el 28 de Jun. de 2018
"Note: Bicubic interpolation can produce pixel values outside the original range."

Más respuestas (0)

Categorías

Más información sobre Images en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by