-
Notifications
You must be signed in to change notification settings - Fork 39
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
base: master
Are you sure you want to change the base?
Conversation
|
||
# 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] |
There was a problem hiding this comment.
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
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 |
There was a problem hiding this comment.
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?
b06b67a
to
3012770
Compare
…ther be a bounding box or points
…a region which can either be a bounding box or points
3012770
to
65891b1
Compare
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
