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?

 채택된 답변

Walter Roberson
Walter Roberson 2018년 6월 28일

0 개 추천

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

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Images에 대해 자세히 알아보기

질문:

2018년 6월 28일

답변:

2018년 6월 28일

Community Treasure Hunt

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

Start Hunting!

Translated by