why I have Nan value in resampling image?
1 visualizzazione (ultimi 30 giorni)
Image Analyst il 6 Dic 2013
I don't know. That function is not in MATLAB or the Image Processing Toolbox. Is that this File Exchange submission? Actually I'm surprised you can even access the 255th column when your image has only 250 columns - you should have gotten an index out of range error. NI(188,255) should not even exist if you resized to 188*250! So either dive into it yourself with the debugger or contact the author. Or better yet, if you have the Image Processing Toolbox, just use imresize() instead.
Alex Taylor il 6 Dic 2013
This is the second post I've seen recently on imresample. Is the reason you are using this function that you don't have the Image Processing Toolbox? You should use imresize if you have access to it.
Alex Taylor il 7 Dic 2013
Imresize, like all geometric transformation operations, uses resampling to define output values that do not lie at integral pixel values in the input image.
Imresample is just another version of an image resizing function. It appears to have numerics issues at the edges, which is why we are advising you to use imresize.