Augmentor
Augmentor copied to clipboard
Add padding value for mask
I have noticed that the image and ground truth are processing in the same way, but this entails difficulties when they have different color schemes. So I made a new do_mask function that handles ground_truth images.
Example of usage:
p.rotate_without_crop(
probability=0.7,
max_left_rotation=10,
max_right_rotation=10,
fillcolor=(255, 255, 255), # will apply to image
mask_fillcolor=127, # will apply to grayscale ground truth
)
Relates to #165
Hi @puhoshville I will take a look a closer look at this soon, and merge it once I've done so. Thanks for the efforts! M.
Did some refactoring.
Also, there is an issue with white lines and I don't know how can I fix it:
Hi @puhoshville are the white lines something to do with aliasing maybe? And that anti-aliasing needs to be applied which may not be the case by default (I cannot remember off the top of my head).
@mdbloice sorry I didn't check it before - there is white lines problem on commit e6ef7bc73d5790c864d3977f7cc4e2e9905c03f5 - it's before my contributions, so I created a separate issue to handle it. You can review current PR and merge it if all is ok.
@mdbloice, any updates?