Unrecognized function error.
4 visualizzazioni (ultimi 30 giorni)
Gargi Patil il 3 Set 2021
As mentioned in the comments, the forward slash in the path is not required. Ensure the image is on the MATLAB path or pass the required file path.
The code snippet shared works successfully for MATLAB's built-in demo binary image:
I = imread('circles.png');
nonZeroPixels = nnz(I)