From 7225ba8d93d73897c829f45776891d23a446a28a Mon Sep 17 00:00:00 2001 From: Bryn Lloyd <bryn.lloyd@gmail.com> Date: Thu, 26 Oct 2017 09:07:33 +0200 Subject: [PATCH] Fixing whitespace & remove redundant inline keyword --- Imaging/Color/vtkImageQuantizeRGBToIndex.cxx | 10 ++++---- Imaging/Color/vtkImageQuantizeRGBToIndex.h | 24 ++++++++++---------- 2 files changed, 17 insertions(+), 17 deletions(-) diff --git a/Imaging/Color/vtkImageQuantizeRGBToIndex.cxx b/Imaging/Color/vtkImageQuantizeRGBToIndex.cxx index ff4dc103643..da2effa797c 100644 --- a/Imaging/Color/vtkImageQuantizeRGBToIndex.cxx +++ b/Imaging/Color/vtkImageQuantizeRGBToIndex.cxx @@ -66,16 +66,16 @@ public: void SetImage( void *image ) { this->Image = image; }; void SetAxis( int v ) { this->Axis = v; }; - inline int GetAxis() { return this->Axis; } + int GetAxis() { return this->Axis; } void SetSplitPoint( int v ) { this->SplitPoint = v; }; - inline int GetSplitPoint() { return this->SplitPoint; } + int GetSplitPoint() { return this->SplitPoint; } int *GetBounds( ) { return this->Bounds; }; void SetBounds( int v[6] ) { memcpy( this->Bounds, v, 6*sizeof(int) ); }; void SetIndex( int v ) { this->Index = v; }; - inline int GetIndex() { return this->Index; } + int GetIndex() { return this->Index; } double GetStdDev( int axis ) { return this->StdDev[axis]; }; void ComputeStdDev(); @@ -93,10 +93,10 @@ public: void Divide( int axis, int nextIndex ); void SetChild1( vtkColorQuantizeNode *n ) { this->Child1 = n; }; - inline vtkColorQuantizeNode *GetChild1() { return this->Child1; } + vtkColorQuantizeNode *GetChild1() { return this->Child1; } void SetChild2( vtkColorQuantizeNode *n ) { this->Child2 = n; }; - inline vtkColorQuantizeNode *GetChild2() { return this->Child2; } + vtkColorQuantizeNode *GetChild2() { return this->Child2; } int GetIndex( int c[3] ) { if ( this->Index>=0 ) {return this->Index;} diff --git a/Imaging/Color/vtkImageQuantizeRGBToIndex.h b/Imaging/Color/vtkImageQuantizeRGBToIndex.h index bdbdc7a0afc..2459a17527f 100644 --- a/Imaging/Color/vtkImageQuantizeRGBToIndex.h +++ b/Imaging/Color/vtkImageQuantizeRGBToIndex.h @@ -26,18 +26,18 @@ * To use this filter, you typically set the number of colors * (between 2 and 65536), execute it, and then retrieve the lookup table. * The colors can then be using the lookup table and the image index. -* -* This filter can run faster, by initially sampling the colors at a -* coarser level. This can be specified by the SamplingRate parameter. -* -* The "index-image" viewed as a greyscale image, is usually quite -* arbitrary, excentuating contrast where none can be perceived in -* the original color image. -* To make the index image more meaningful (e.g. for image segmentation -* operating on scalar images), we sort the mean colors by luminance -* and re-map the indices accordingly. This option does not introduce any -* computational complexity and has no impact on actual colors in the -* lookup table (only their order). + * + * This filter can run faster, by initially sampling the colors at a + * coarser level. This can be specified by the SamplingRate parameter. + * + * The "index-image" viewed as a greyscale image, is usually quite + * arbitrary, excentuating contrast where none can be perceived in + * the original color image. + * To make the index image more meaningful (e.g. for image segmentation + * operating on scalar images), we sort the mean colors by luminance + * and re-map the indices accordingly. This option does not introduce any + * computational complexity and has no impact on actual colors in the + * lookup table (only their order). */ #ifndef vtkImageQuantizeRGBToIndex_h -- GitLab