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

Cropping after warp #169

Open
RpfR2000 opened this issue Jan 22, 2024 · 2 comments
Open

Cropping after warp #169

RpfR2000 opened this issue Jan 22, 2024 · 2 comments

Comments

@RpfR2000
Copy link

Warping produces NaN values, by default. Is there a built-in way to crop the regions of the image that contain NaN? For example, I have a stack of images that I have registered. They all have NaN (except the first in the stack) due to the warp. Is there a way to efficiently crop to the maximal size that preserves all non-NaN values? I couldn't find anything in the docs. If not, no problem.

@timholy
Copy link
Member

timholy commented Jan 22, 2024

I don't remember anything built in. It might be worth adding. Care to try making a PR?

@RpfR2000
Copy link
Author

Sure! I'll get to it later this week.

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

No branches or pull requests

2 participants