Skip to content

Commit

Permalink
STYLE: Improve PSFLSIF test style
Browse files Browse the repository at this point in the history
Improve PSFLSIF test style:
- Define as a constant expression the image dimensionality.
- Define a type alias for the image pixel type.
  • Loading branch information
jhlegarreta authored and dzenanz committed Nov 8, 2023
1 parent 1f80e35 commit 45583cf
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,10 @@ itkParallelSparseFieldLevelSetImageFilterTest(int argc, char * argv[])
return EXIT_FAILURE;
}

using ImageType = itk::Image<float, 3>;
constexpr unsigned int Dimension = 3;

using PixelType = float;
using ImageType = itk::Image<PixelType, Dimension>;

constexpr int n = 100; // Number of iterations
constexpr int numberOfWorkUnits = 11; // Number of work units to be used
Expand Down

0 comments on commit 45583cf

Please sign in to comment.