Crop size confusion #3

Closed
opened 2025-07-10 14:49:23 +00:00 by dennisarfan · 6 comments
Contributor

The crop size is calculated after crop_offset right?

The crop size is calculated after `crop_offset` right?
Owner

No, both crop_offset and crop_size are relative to the stitched canvas. The visual guide on the readme should help you.

No, both `crop_offset` and `crop_size` are relative to the stitched canvas. The visual guide on the readme should help you.
Author
Contributor

Let's say the stitched image is 720x720, crop_offset is [0.5, 0.5] and the crop_size is [1.0, 1.0], then the cropped image is 360x360, right?

Let's say the stitched image is 720x720, `crop_offset` is `[0.5, 0.5]` and the `crop_size` is `[1.0, 1.0]`, then the cropped image is 360x360, right?
Owner

No, that would be invalid as the crop region would be outside the stitched canvas.

No, that would be invalid as the crop region would be outside the stitched canvas.
Owner

crop_size of [1.0, 1.0] would be the original size so there can't be any offset.

`crop_size` of `[1.0, 1.0]` would be the original size so there can't be any offset.
Author
Contributor

Oh, I see, so the crop_offset + crop_size won't exceed [1.0, 1.0]?

Oh, I see, so the `crop_offset` + `crop_size` won't exceed `[1.0, 1.0]`?
Owner

correct

correct
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: Contest/stitch-a-ton#3
No description provided.