Undefined function 'imhistc' for input arguments of type 'uint8'.

Im trying to get the histogram of an image using imhist. however its showing the above error? i tried which imhistc and its not found. Im using matlab R2016

1 Comment

I face the same problem. Canny edge detector as it, like imhist, depends on the function imhistc, which is somehow not present in our computers.

Sign in to comment.

 Accepted Answer

imhistc is a mex file that is installed as part of the Image Processing Toolbox.
If it is not found, first experiment with
restoredefaultpath; rehash toolboxcache
and see if it comes back. If it does, then you had some kind of path problem.
If it does not come back, then you will need to reinstall Image Processing Toolbox.
If reinstalling Image Processing Toolbox does not work, then the most common cause is if your anti-virus software has for some reason quarintined the file, for some reason.

More Answers (1)

To use the imhistc function you need to install 'Image Processing Toolbox'. You can install it in Matlab Add-Ons.

Categories

Community Treasure Hunt

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

Start Hunting!