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 comentario

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.

Iniciar sesión para comentar.

 Respuesta aceptada

Walter Roberson
Walter Roberson el 26 de Mzo. de 2026 a las 18:08
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.

Más respuestas (1)

Elena
Elena el 26 de Mzo. de 2026 a las 16:40
To use the imhistc function you need to install 'Image Processing Toolbox'. You can install it in Matlab Add-Ons.

Etiquetas

Preguntada:

el 12 de Abr. de 2016

Respondida:

el 26 de Mzo. de 2026 a las 18:08

Community Treasure Hunt

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

Start Hunting!

Translated by