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?

 採用された回答

Geoff Hayes
Geoff Hayes 2014 年 11 月 14 日
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.

その他の回答 (0 件)

質問済み:

2014 年 11 月 14 日

コメント済み:

2014 年 11 月 14 日

Community Treasure Hunt

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

Start Hunting!

Translated by