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

arbitrary grid limits #2

Open
cristidonos opened this issue Sep 10, 2020 · 1 comment
Open

arbitrary grid limits #2

cristidonos opened this issue Sep 10, 2020 · 1 comment

Comments

@cristidonos
Copy link

Hi Denis,

Right now the grid is defined by low and high limits.
However, in many applications you need to account for direction as well (medical images), and you may end up with X axis ranging from 0->10 and Y axis ranging from 10->0. In this case lo= np.array([0,10]), and hi=np.array([10,0]). Can intergrid handle such lo/hi definitions?

Thanks

@denis-bz
Copy link
Owner

Hi Cristidonos,
is the outer rectangle axis-aligned with e.g. Y down, or also tilted / warped like

______
\    /    ?
 ---

In the latter case you can transform-irregular-quadrilateral-to-rectangle
(points.dot( trans.T ), fast),
then intergrid on the rect, then transform back.
I may have misunderstood completely, let me know
cheers
-- denis

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