Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# Custom attribute to mark sources as using our C++/C code style.
[attr]our-c-style whitespace=tab-in-indent,no-lf-at-eof hooks.style=KWStyle,clangformat
*.c our-c-style
*.h our-c-style
*.cxx our-c-style
*.hxx our-c-style
*.txx our-c-style

# Custom attribute to mark sources as using our CMake code style.
[attr]our-cmake-style whitespace=tab-in-indent,no-lf-at-eof hooks.style=cmakeformat
*.txt our-cmake-style
*.cmake our-cmake-style
*.wrap our-cmake-style
CMakeLists.txt our-cmake-style

# ExternalData content links must have LF newlines
*.md5 crlf=input
*.sha512 crlf=input
*.cid crlf=input

# ghostflow-director GitHub automatic check for maximum repository file size
* hooks-max-size=100000
6 changes: 3 additions & 3 deletions test/itkDICOMOrientImageFilterGTest.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -451,9 +451,9 @@ TEST(DICOMOrientation, DirectionCosinesToOrientation)
d(0, 2) = 1;
EXPECT_EQ(OE::SPL, DICOMOrientation::DirectionCosinesToOrientation(d));

const double data[] = { 0.5986634407395047, 0.22716302314740483, -0.768113953548866,
0.5627936241740271, 0.563067040943212, 0.6051601804419384,
0.5699696670095713, -0.794576911518317, 0.20924175102261847 };
constexpr itk::SpacePrecisionType data[]{ 0.5986634407395047, 0.22716302314740483, -0.768113953548866,
0.5627936241740271, 0.563067040943212, 0.6051601804419384,
0.5699696670095713, -0.794576911518317, 0.20924175102261847 };
ImageType::DirectionType::InternalMatrixType m{ data };
d.GetVnlMatrix() = m;
EXPECT_EQ(OE::PIR, DICOMOrientation::DirectionCosinesToOrientation(d));
Expand Down
Loading