The image and the VOI file are .nii
files.
After giving the two paths (image and VOI) it will load them, removes the areas we don't care about (using the ROI) then performs the trim.
Here an example:
The final size is the best fitting crop of the 3D image.
Before use it we invite you to read the LICENSE.
This file is distributed under the terms of the GNU General Public License v3.0
Permissions of this strong copyleft license are conditioned on making available complete source code of licensed works and modifications, which include larger works using a licensed work, under the same license. Copyright and license notices must be preserved. Contributors provide an express grant of patent rights.
Visit http://www.gnu.org/licenses/ for further information.