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

[SDEV-1958] extend tiled acquisition code to be able to acquire non rectangular shapes #3014

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

nandishjpatel
Copy link
Contributor

The code changes are similar to that of FASTEM ROA which is represented by points. One difference is that TiledAcquisitionTask supports both a bound box and points as an input region and is backwards compatible.

Attached an image for overview image acquisition of a rotated rectangle
Screenshot from 2025-01-24 14-25-46

@nandishjpatel nandishjpatel changed the title Sdev 1958 extend tiled acquisition code to be able to acquire non rectangular shapes [SDEV-1958] extend tiled acquisition code to be able to acquire non rectangular shapes Jan 27, 2025

# We have a little bit more tiles than needed, we then have two choices
# on how to spread them:
# 1. Increase the total area acquired (and keep the overlap)
# 2. Increase the overlap (and keep the total area)
# We pick alternative 1 (no real reason)
center = (self._area[0] + self._area[2]) / 2, (self._area[1] + self._area[3]) / 2
xmin, ymin, xmax, ymax = self._polygon.bounds
center = ((xmin + xmax) / 2, (ymin + ymax) / 2)
total_size = nx * reliable_fov[0], ny * reliable_fov[1]
Copy link
Contributor

Choose a reason for hiding this comment

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

Not completely sure if it matters here, but the total size should include one overlap as well. Since for the total width you have one full tile and (n-1) overlapping tiles

Suggested change
total_size = nx * reliable_fov[0], ny * reliable_fov[1]
total_size = nx * reliable_fov[0] + self._sfov[0] * self._overlap,
ny * reliable_fov[1] + self._sfov[1] * self._overlap

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I am also not sure here. @pieleric can you help?

@nandishjpatel nandishjpatel requested a review from tepals January 29, 2025 08:39
@nandishjpatel nandishjpatel force-pushed the SDEV-1958-extend-tiled-acquisition-code-to-be-able-to-acquire-non-rectangular-shapes branch from b06b67a to 3012770 Compare January 29, 2025 08:50
@nandishjpatel nandishjpatel force-pushed the SDEV-1958-extend-tiled-acquisition-code-to-be-able-to-acquire-non-rectangular-shapes branch from 3012770 to 65891b1 Compare February 7, 2025 07:04
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