Skip to content
Snippets Groups Projects
Commit 7205837b authored by Emmanuel Christophe's avatar Emmanuel Christophe
Browse files

STYLE: clean ImageToLuminanceImageFilter

parent 8ca09e10
No related branches found
No related tags found
No related merge requests found
......@@ -165,16 +165,14 @@ protected:
virtual void BeforeThreadedGenerateData(void)
{
ImageMetadataInterface::Pointer imageMetadataInterface= ImageMetadataInterface::New();
if(m_Alpha.GetSize() == 0)
{
ImageMetadataInterface::Pointer imageMetadataInterface= ImageMetadataInterface::New();
m_Alpha = imageMetadataInterface->GetPhysicalGain(this->GetInput()->GetMetaDataDictionary());
}
if(m_Beta.GetSize() == 0)
{
ImageMetadataInterface::Pointer imageMetadataInterface= ImageMetadataInterface::New();
m_Beta = imageMetadataInterface->GetPhysicalBias(this->GetInput()->GetMetaDataDictionary());
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment