computed-axial-lithography / CAL-software-Matlab

Software to support volumetric additive manufacturing by tomographic reconstruction (education, research and not-for-profit use)
GNU General Public License v3.0
59 stars 14 forks source link

Cropping functionality in CALCreateImageSet #10

Closed jttoombs closed 3 years ago

jttoombs commented 3 years ago

This feature is designed to remove zero rows and columns from the modified projection set before insertion into the image set. This is especially helpful if the projection set must be rotated before insertion because the rotation adds buffer space to ensure the image fits without cropping. When inserting into the image set this larger projection set can extend beyond the bounds of the image. The cropToBounds function finds the first and last nonzero elements of the projection set in the transverse and z dimensions and crops the bounding box of the projection to these indices. This allows for larger projection sets to be inserted into the image set than the previous capability.