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.
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.