Closed terasakisatoshi closed 2 years ago
tfm = RandomCrop
I found the following P
is a instance of CoodinateTransformations.IdentityTransformation
:
P = getprojection(tfm, bounds; randstate = randstate)
where the line above is taken from apply
function
therefore apply(tfm, image)
just returns image
. I think getprojection
function has some bugs.
It seems
tfm=CenterCrop
does not crop a fixed-size region from the center.For example, the following code displays the original
imagedata
, not a cropped image.I think
apply(tfm, image) |> itemdata |> size
should show(100, 100)
.