pyushkevich / itksnap

ITK-SNAP medical image segmentation tool
http://www.itksnap.org
GNU General Public License v3.0
281 stars 78 forks source link

Fix export of speed image #123 #124

Closed a-a-danilov closed 5 months ago

a-a-danilov commented 5 months ago

The IsLinear flag in ImageWrapper::CreateCastTo*Pipeline was always false since LinearInternalToNativeIntensityMapping can never be the base class of NativeIntensityMapping. Changing positions of base and derived class in std::is_base_of will fix this.

These changes fix the problem with saving speed images reported in #123.

pyushkevich commented 5 months ago

Thank you, this is awesome!