I'm trying to extract the label-image into a more generic image format using the code below. An image
with correct dimensions is subtracted successfully, however half the image (the right-most part) is missing, or specifically, all pixels after pixel column #365 counting from the left is black (except for the blue channel which, curiously, continues for another column).
Am I doing something wrong here or may there be a bug?
I'm trying to extract the label-image into a more generic image format using the code below. An image with correct dimensions is subtracted successfully, however half the image (the right-most part) is missing, or specifically, all pixels after pixel column #365 counting from the left is black (except for the blue channel which, curiously, continues for another column).
Am I doing something wrong here or may there be a bug?