Skip to content
New issue

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

Add method to stack cutouts #9

Merged
merged 1 commit into from
Dec 17, 2020
Merged

Add method to stack cutouts #9

merged 1 commit into from
Dec 17, 2020

Conversation

erikzaborowski
Copy link
Collaborator

Adding a method to stack the cutouts for each band into one array. The process is:

  1. For each band, pull cutouts of all objects into an array (resulting in one array per band)
  2. Stack these individual arrays together and then reshape to have the desired dimensions: (num_cutouts, num_bands, cutout_width, cutout_height)

Copy link
Collaborator

@rmorgan10 rmorgan10 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great!

@rmorgan10 rmorgan10 merged commit a4cc891 into main Dec 17, 2020
@rmorgan10 rmorgan10 deleted the stack_cutouts branch December 17, 2020 14:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants