Hi there,
I have 64*64 pixel Image and value are measured in 40s withe Image Rate (47 1/s). Image file is 64*64*1913 double, I want to find location for minimum Pixel Value (row and colmns) in region (32:64, 32:64) in all of the time. I used these two codes but it didn't work.
[row, column] = find(min(squeeze(nanmean(squeeze(nanmean((imgfilt(32:64,32:64,:)))))) == 1)) row = []column = []% % % % % % % % % % % % % % % % % % %
>> M = (min(nanmean(nanmean( imgfilt(32:64,32:64,: ),2),1)));[min_val,idx] = min(M(:))[row,col] = ind2sub(M,idx)min_val = -3.6858e+14idx = 1row = 1col = 1
Best Answer