imresize is creating negative numbers from a matrix?

6 Ansichten (letzte 30 Tage)
Real Name
Real Name am 28 Jun. 2018
Beantwortet: Walter Roberson am 28 Jun. 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?

Akzeptierte Antwort

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

Weitere Antworten (0)

Kategorien

Mehr zu Image Processing Toolbox finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by