Skip to content
Snippets Groups Projects
Commit 59ba674d authored by Cyrille Valladeau's avatar Cyrille Valladeau
Browse files

ENH : add missing initialization

parent 9b6a3a0c
Branches
Tags
No related merge requests found
......@@ -42,7 +42,7 @@ PrintableImageFilter<TInputImage, TMaskImage>
m_ChannelList[2] = 4;
m_ObjectColor.SetSize( 3 );
m_ObjectColor.Fill(255);
m_UseMask = false;
m_BackgroundMaskValue = 0;
}
......
......@@ -36,14 +36,11 @@ int otbPrintableImageFilter( int argc, char * argv[] )
typedef double InputPixelType;
const unsigned int Dimension = 2;
typedef otb::VectorImage< InputPixelType, Dimension > InputImageType;
typedef otb::ImageFileReader< InputImageType > ReaderType;
typedef otb::PrintableImageFilter< InputImageType> FilterType;
typedef FilterType::OutputImageType OutputImageType;
typedef otb::StreamingImageFileWriter< OutputImageType > WriterType;
typedef otb::VectorImage< InputPixelType, Dimension > InputImageType;
typedef otb::ImageFileReader< InputImageType > ReaderType;
typedef otb::PrintableImageFilter< InputImageType> FilterType;
typedef FilterType::OutputImageType OutputImageType;
typedef otb::StreamingImageFileWriter< OutputImageType > WriterType;
FilterType::Pointer printableImageFilter = FilterType::New();
......
......@@ -58,7 +58,7 @@ int otbPrintableImageFilterWithMask( int argc, char * argv[] )
writer->SetFileName( outputFilename );
printableImageFilter->SetInput( inputReader->GetOutput() );
printableImageFilter->SetInputMask( maskReader->GetOutput()/*rescaler->GetOutput()*/ );
printableImageFilter->SetInputMask( maskReader->GetOutput() );
FilterType::ChannelsType chList;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment