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;
pix.SetSize(nBands);
FloatVectorImageType::PixelType pix(nBands);
pix.Fill(0);
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