I have a multidimensional matrix and I want to find the position of the maximum.
So naturally, I used [~,idx]=max(M,,num)
where M is the matrix thats mxnxa and num is the dimension a.
This worked for a specific sample of images that I'm testing but doesn't work for others.
The code looks like this.
To reiterate, this ONLY works for a SPECIFIC sample of images. Could this be because of different filetypes? The sample that worked is .png and the one that didn't is .jpg...
EDIT1: made a set of samples that were jpg and worked. I'm starting to think there's an issue with the size of the image (1920x1280)
Any help is appreciated