imresize is creating negative numbers from a matrix?
6 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Real Name
il 28 Giu 2018
Risposto: Walter Roberson
il 28 Giu 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?
0 Commenti
Risposta accettata
Walter Roberson
il 28 Giu 2018
Default interpolation method is bicubic https://www.mathworks.com/help/images/ref/imresize.html#buxswkh-1-method
"Note: Bicubic interpolation can produce pixel values outside the original range."
0 Commenti
Più risposte (0)
Vedere anche
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!