Augmentor icon indicating copy to clipboard operation
Augmentor copied to clipboard

How to restore/reshape image that hass been cropping to original size?

Open bangluqman opened this issue 7 years ago • 2 comments

My image size 560x560, I has been crop my training image dataset and testing image to patch with size 48x48, and feed to my neural network. So I need to restore/reshape the output from network to original size. Is there a way to do this?

bangluqman avatar Dec 02 '18 04:12 bangluqman

Hi @bangluqman, I am not quite sure if I follow what you mean... You can add a final resize operation to the end of the pipeline (by setting probability=1.0) that would resize every image back to 560x560 but this would mean of course your 48x48 patches would be up-scaled quite dramatically, which would affect the quality of your final images.

mdbloice avatar Dec 03 '18 10:12 mdbloice

Thank you for your reply, an I am sorry while my question not detail. I can explain my method in general like this :

I have image the input image (1x560x560) and I split into patches (3000x48x48) using Augmentor. And then I applied some image processing technique to the patch. After that, how to reconstruction output image (3000x48x48) back to (1x560x560)?

bangluqman avatar Dec 06 '18 05:12 bangluqman