Skip to content

Commit

Permalink
STYLE: Apply clang-format for ITK Coding Style
Browse files Browse the repository at this point in the history
  • Loading branch information
thewtex committed Jan 11, 2020
1 parent def98ac commit ff88e8f
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 16 deletions.
9 changes: 3 additions & 6 deletions examples/CompleteMontage.cxx
Expand Up @@ -145,8 +145,7 @@ class CommandIterationUpdate : public itk::Command
using Pointer = itk::SmartPointer<Self>;
itkNewMacro(Self)

protected:
CommandIterationUpdate() = default;
protected : CommandIterationUpdate() = default;

public:
void
Expand Down Expand Up @@ -527,8 +526,7 @@ completeMontage(const itk::TileConfiguration<Dimension> & stageTiles,
stageTiles, inputPath, outputPath, outFilename, correctBias, denoise);
break;
default:
itkGenericExceptionMacro("Only sclar, RGB and RGBA images are supported!")
break;
itkGenericExceptionMacro("Only sclar, RGB and RGBA images are supported!") break;
}
}

Expand Down Expand Up @@ -594,8 +592,7 @@ mainHelper(int argc, char * argv[], std::string inputPath)
default: // instantiating too many types leads to long compilation time and big executable
itkGenericExceptionMacro(
"Only unsigned char, unsigned short and short are supported as pixel component types! Trying to montage "
<< itk::ImageIOBase::GetComponentTypeAsString(componentType))
break;
<< itk::ImageIOBase::GetComponentTypeAsString(componentType)) break;
}

return EXIT_SUCCESS;
Expand Down
6 changes: 2 additions & 4 deletions examples/ResampleMontage.cxx
Expand Up @@ -105,8 +105,7 @@ resampleMontage(const itk::TileConfiguration<Dimension> & actualTiles,
break;
default:
itkGenericExceptionMacro("Only sclar, RGB and RGBA images are supported! Actual pixel type: "
<< itk::ImageIOBase::GetPixelTypeAsString(pixelType))
break;
<< itk::ImageIOBase::GetPixelTypeAsString(pixelType)) break;
}
}

Expand Down Expand Up @@ -153,8 +152,7 @@ mainHelper(char * argv[])
default: // instantiating too many types leads to long compilation time and big executable
itkGenericExceptionMacro(
"Only unsigned char, unsigned short and short are supported as pixel component types! Trying to montage "
<< itk::ImageIOBase::GetComponentTypeAsString(componentType))
break;
<< itk::ImageIOBase::GetComponentTypeAsString(componentType)) break;
}

return EXIT_SUCCESS;
Expand Down
12 changes: 6 additions & 6 deletions include/itkTileMergeImageFilter.h
Expand Up @@ -234,12 +234,12 @@ class ITK_TEMPLATE_EXPORT TileMergeImageFilter
PixelType m_Background = PixelType(); // default background value (not covered by any input tile)

std::vector<TransformConstPointer> m_Transforms;
std::vector<ImagePointer> m_Tiles; // metadata/image storage (if filenames are given instead of actual images)
typename Superclass::ConstPointer m_Montage;
std::vector<RegionType> m_InputMappings; // where do input tile regions map into the output
std::vector<ContinuousIndexType> m_InputsContinuousIndices; // where do input tile region indices map into the output
std::vector<RegionType> m_Regions; // regions which completely cover the output,
// grouped by the set of contributing input tiles
std::vector<ImagePointer> m_Tiles; // metadata/image storage (if filenames are given instead of actual images)
typename Superclass::ConstPointer m_Montage;
std::vector<RegionType> m_InputMappings; // where do input tile regions map into the output
std::vector<ContinuousIndexType> m_InputsContinuousIndices; // where do input tile region indices map into the output
std::vector<RegionType> m_Regions; // regions which completely cover the output,
// grouped by the set of contributing input tiles
std::vector<ContributingTiles> m_RegionContributors; // set of input tiles which contribute to corresponding regions
}; // class TileMergeImageFilter

Expand Down

0 comments on commit ff88e8f

Please sign in to comment.