patchify.py icon indicating copy to clipboard operation
patchify.py copied to clipboard

How to calculate step if > 1

Open talhaanwarch opened this issue 3 years ago • 2 comments

Is there a way to calculate step which does not throw error and greater than 1 For example, I have 3D image of shape (512, 512, 110), I want to create multiple patches of shape (128,128,10), I don't know what should be the step size? Can I calculate it? This line in readme is not clear to me (width - patch_width) mod step_size = 0

talhaanwarch avatar May 18 '21 06:05 talhaanwarch

I can remove some of data to make it fix, but I am not getting correct formula

talhaanwarch avatar May 18 '21 07:05 talhaanwarch

Does step size 2 work for you?

dovahcrow avatar May 18 '21 17:05 dovahcrow