Commit 3173c0e0 authored by remi cresson's avatar remi cresson

REFAC: use pixel constructor instead of SetSize()

parent d7654b17
......@@ -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