Subsetting images in Giotto objects #1166
Unanswered
rbutleriii
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi @jiajic , I know you mentioned in #1067 that you are working on more comprehensive control of images, but I wanted to ask if there is a better way to crop an image to a polygon (like from region selection for example). I tried an approach below, and it works to drop all images that are not in the
subsetGiottoobject, but it appears to apply the crop to the spatial extent of the data, not using the polygon as a mask as I think terra can do (mask = TRUE)? Realistically this would help for non-rectangular selection regions.Below image should have the lower right corner clipped based on a polygon

Beta Was this translation helpful? Give feedback.
All reactions