Undefined function 'graydiffweight" to calculate weights for image pixels

I'm using matlab 2014a and I have image processing toolbox, I'm trying to calculate weights for image pixels based on grayscale intensity difference, using "graydiffweight" function described in this link: http://www.mathworks.com/help/images/ref/graydiffweight.html
I have tried with many different image type, but every time it give me this message "??? Undefined function or method 'graydiffweight' for input arguments of type 'uint8'. or ??? Undefined function or method 'graydiffweight' for input arguments of type 'double'." is this function only work with matlab 2014b? is there any code I can use and give the same result?

 Risposta accettata

Reema - graydiffweight appears to be a new function in R2014b and is not present in R2014a. See the R2014a Image Processing Toolbox documentation for details.
To verify that you do not have this function, in the Command Window type
which graydiffweight -all
and you will probably see
'graydiffweight' not found.

Più risposte (0)

Richiesto:

il 14 Nov 2014

Commentato:

il 14 Nov 2014

Community Treasure Hunt

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

Start Hunting!

Translated by