Undefined function or variable 'centerCropWindow2d'

The following error is thrown .....
Undefined function or variable 'centerCropWindow2d'
What do I need to set to use the method 'centerCropWindow2d'?
Thank you.

Answers (1)

Do you have Image Processing Toolbox installed and licensed?
Are you using release R2019b or later?
According to this function's documentation page it was introduced as part of Image Processing Toolbox in release R2019b. If you don't have this toolbox or are using an older release you will not be able to use it.

2 Comments

Hi Steven,
Thank you for your prompt reply and for the explanation. The university has the license but we are running R2019a release. I guess, I will need to implement my own 'centerCropWindow2d' from the scratch, could you please give me a hint on how to implement this function please.
Thank you.
I have same question. Following...

Sign in to comment.

Categories

Asked:

on 30 Sep 2019

Commented:

on 22 Feb 2020

Community Treasure Hunt

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

Start Hunting!