Commit de2c2b11 authored by Cresson Remi's avatar Cresson Remi
Browse files

ENH: sampler preserve physical spacing in output patches

Showing with 1 addition and 0 deletions
+1 -0
...@@ -145,6 +145,7 @@ TensorflowSampler<TInputImage, TVectorData> ...@@ -145,6 +145,7 @@ TensorflowSampler<TInputImage, TVectorData>
{ {
ImagePointerType newImage; ImagePointerType newImage;
AllocateImage(newImage, m_PatchSizes[i], nTotal, GetInput(i)->GetNumberOfComponentsPerPixel()); AllocateImage(newImage, m_PatchSizes[i], nTotal, GetInput(i)->GetNumberOfComponentsPerPixel());
newImage->SetSignedSpacing(this->GetInput(i)->GetSignedSpacing());
m_OutputPatchImages.push_back(newImage); m_OutputPatchImages.push_back(newImage);
} }
......
Supports Markdown
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