I'm really new at matlab and I'm trying to understand this piece of code:
mask = false(size(image_map));
image_map(mask) = -1;
I understand that the first line is to create an array of logical zeros that is the same size as image_map, but what is this image_map(mask)
for?
Sorry if it's a dumb question and the answers will be appreciated.