We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
tfm = CenterCrop
tfm = RandomCrop
It seems tfm=CenterCrop does not crop a fixed-size region from the center.
tfm=CenterCrop
For example, the following code displays the original imagedata, not a cropped image.
imagedata
using DataAugmentation # v0.2.5 using TestImages imagedata = testimage("lighthouse") tfm = CenterCrop((100, 100)) image = Image(imagedata) apply(tfm, image) |> itemdata
I think apply(tfm, image) |> itemdata |> size should show (100, 100).
apply(tfm, image) |> itemdata |> size
(100, 100)
The text was updated successfully, but these errors were encountered:
Sorry, something went wrong.
I found the following P is a instance of CoodinateTransformations.IdentityTransformation:
P
CoodinateTransformations.IdentityTransformation
P = getprojection(tfm, bounds; randstate = randstate)
where the line above is taken from apply function
apply
https://github.com/lorenzoh/DataAugmentation.jl/blob/84838f2a49d901c218ff57b3a382cb6607f94357/src/projective/base.jl#L101-L106
therefore apply(tfm, image) just returns image. I think getprojection function has some bugs.
apply(tfm, image)
image
getprojection
Merge pull request #53 from mfalt/mfalt-projection-bounds
aec2183
Fix #52, `CenterCrop` and `RandomCrop` now work on their own as exptected.
Successfully merging a pull request may close this issue.
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)
.The text was updated successfully, but these errors were encountered: