Skip to content
Discussion options

You must be logged in to vote

Hi @XIANYUNYEHE-DEL, you can get the crop_center like this:

ret = RandCropByPosNegLabeld(keys='image', label_key='label', spatial_size=(270,270))(data)
print(ret[0]['image'].meta['crop_center'])

Hope it can help you!
Thanks!

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@XIANYUNYEHE-DEL
Comment options

Answer selected by XIANYUNYEHE-DEL
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants