imresize is creating negative numbers from a matrix?

조회 수: 11 (최근 30일)
Real Name
Real Name 2018년 6월 28일
답변: Walter Roberson 2018년 6월 28일
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일
"Note: Bicubic interpolation can produce pixel values outside the original range."

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Images에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by