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.
The
IsLinear
flag inImageWrapper::CreateCastTo*Pipeline
was always false sinceLinearInternalToNativeIntensityMapping
can never be the base class ofNativeIntensityMapping
. Changing positions of base and derived class instd::is_base_of
will fix this.These changes fix the problem with saving speed images reported in #123.