imresize is creating negative numbers from a matrix?

6 ビュー (過去 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 Center および File ExchangeImages についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by