So I'm recreating a Matlab project they made last year, part of which involves creating mask that pull out the RGB bands. They did this by an array of logical zeroes.
GMask_Whole = false(ROWS,COLS);
which I reconstructed as a numpy array.
self.green_mask_whole=np.zeros((self.rows, self.columns), dtype=bool)
The next part I can't for the life of me figure out how to do with numpy:
GMask_Whole(1:2:end,2:2:end) = true;
I've yet to find a numpy equivalent action. any Ideas?
btw, if your curious about what this is doing: https://en.wikipedia.org/wiki/Bayer_filter
edit: things I've tried:
wut(1:3:end, 1:2:end) = true
wut([1:3:end], [1:2:end]) = true
wut([1:3], [1:2]) = true
wut([1:3], [1:2]) = True
wut(slice(1:3), slice(1:2)) = True