@ahojnnes Here, I need mask to be `int` type since `uint8` represents `-1` as `255`. Earlier I had used `mask.astype(np.float)` here, which is rather inefficient since this runs in a loop. So, I thought it would be best to initialise it as `int16`. `int8` gives me an error while compiling. `Expected "int8_t" but got "short"`