v7labs / darwin-py

Library and commandline tool for managing datasets on darwin.v7labs.com
MIT License
115 stars 42 forks source link

[DAR-1590][External] Resize Axial annotation to isotropic #826

Closed shernshiou closed 4 months ago

shernshiou commented 4 months ago

Problem

The volumetric_extractor at busybee, resize each AnatomicalPlane to isotropic 2D. Because of that, the annotation when imported must be resize to the specific dimension based on the pixdims. Without resizing, the mask will be shifted.

Solution

This PR implements the isotropic rescaling logic from volumetric_extractor so that the mask is resized matching the size of the Axial png from volumetric_extractor

Changelog

linear[bot] commented 4 months ago

DAR-1590 BUG: NifTI annotations appear slightly displaced in the sagittal and axial views when uploaded