Commit 07bdb0d6 authored by remi cresson's avatar remi cresson

REFAC: use pixel constructor instead of SetSize()

parent 17c2b87b
......@@ -157,8 +157,7 @@ public:
FloatVectorImageType::PixelType NullPixel(FloatVectorImageType::Pointer & img)
const unsigned int nBands = img->GetNumberOfComponentsPerPixel();
FloatVectorImageType::PixelType pix;
FloatVectorImageType::PixelType pix(nBands);
return pix;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment