From bd87b022a77812be74f0a3b76564c4c660799e21 Mon Sep 17 00:00:00 2001 From: "Schwede, Robert" Date: Mon, 26 Aug 2024 15:47:52 +0200 Subject: [PATCH] more cleanup --- .vscode/launch.json | 17 ++++ .vscode/settings.json | 96 +++++++++++++++++++ .../sliceswriter/SlicesWriterTbb.cpp | 2 +- 3 files changed, 114 insertions(+), 1 deletion(-) create mode 100644 .vscode/launch.json create mode 100644 .vscode/settings.json diff --git a/.vscode/launch.json b/.vscode/launch.json new file mode 100644 index 0000000..4712727 --- /dev/null +++ b/.vscode/launch.json @@ -0,0 +1,17 @@ +{ + // Use IntelliSense to learn about possible attributes. + // Hover to view descriptions of existing attributes. + // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 + "version": "0.2.0", + "configurations": [ + + { + "name": "Debug warpaffine", + "cwd":"${workspaceFolder}", + "type": "cppvsdbg", + "request": "launch", + "program": "${workspaceFolder}/build/warpaffine/Debug/warpaffine.exe", + "args":["--source", "d:\\Beispielbilder\\LLS\\Experiment-199.czi", "--destination", "d:\\Beispielbilder\\LLS\\Experiment-199_wa.czi", "--interpolation", "linear", "--operation", "CoverGlassTransform_and_xy_rotated"] + } + ], + } \ No newline at end of file diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000..b48d65a --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,96 @@ +{ + "files.associations": { + "iomanip": "cpp", + "algorithm": "cpp", + "any": "cpp", + "array": "cpp", + "atomic": "cpp", + "bit": "cpp", + "bitset": "cpp", + "cctype": "cpp", + "charconv": "cpp", + "chrono": "cpp", + "cinttypes": "cpp", + "clocale": "cpp", + "cmath": "cpp", + "codecvt": "cpp", + "compare": "cpp", + "complex": "cpp", + "concepts": "cpp", + "condition_variable": "cpp", + "cstdarg": "cpp", + "cstddef": "cpp", + "cstdint": "cpp", + "cstdio": "cpp", + "cstdlib": "cpp", + "cstring": "cpp", + "ctime": "cpp", + "cwchar": "cpp", + "cwctype": "cpp", + "deque": "cpp", + "exception": "cpp", + "filesystem": "cpp", + "format": "cpp", + "forward_list": "cpp", + "fstream": "cpp", + "functional": "cpp", + "hash_map": "cpp", + "hash_set": "cpp", + "initializer_list": "cpp", + "ios": "cpp", + "iosfwd": "cpp", + "iostream": "cpp", + "istream": "cpp", + "iterator": "cpp", + "limits": "cpp", + "list": "cpp", + "locale": "cpp", + "map": "cpp", + "memory": "cpp", + "memory_resource": "cpp", + "mutex": "cpp", + "new": "cpp", + "numeric": "cpp", + "optional": "cpp", + "ostream": "cpp", + "queue": "cpp", + "random": "cpp", + "ranges": "cpp", + "ratio": "cpp", + "regex": "cpp", + "set": "cpp", + "shared_mutex": "cpp", + "span": "cpp", + "sstream": "cpp", + "stack": "cpp", + "stdexcept": "cpp", + "stop_token": "cpp", + "streambuf": "cpp", + "string": "cpp", + "system_error": "cpp", + "thread": "cpp", + "tuple": "cpp", + "type_traits": "cpp", + "typeinfo": "cpp", + "unordered_map": "cpp", + "unordered_set": "cpp", + "utility": "cpp", + "variant": "cpp", + "vector": "cpp", + "xfacet": "cpp", + "xhash": "cpp", + "xiosbase": "cpp", + "xlocale": "cpp", + "xlocbuf": "cpp", + "xlocinfo": "cpp", + "xlocmes": "cpp", + "xlocmon": "cpp", + "xlocnum": "cpp", + "xloctime": "cpp", + "xmemory": "cpp", + "xstring": "cpp", + "xtr1common": "cpp", + "xtree": "cpp", + "xutility": "cpp" + } +} \ No newline at end of file diff --git a/libwarpaffine/sliceswriter/SlicesWriterTbb.cpp b/libwarpaffine/sliceswriter/SlicesWriterTbb.cpp index 83349d0..086eca0 100644 --- a/libwarpaffine/sliceswriter/SlicesWriterTbb.cpp +++ b/libwarpaffine/sliceswriter/SlicesWriterTbb.cpp @@ -238,7 +238,7 @@ void CziSlicesWriterTbb::Close(const std::shared_ptr& sour } auto increment_node = metadata_builder_from_source->GetRootNode()->GetOrCreateChildNode("Metadata/Information/Image/Dimensions/Z/Positions/Interval/Increment"); - if(increment_node && new_scaling_info->IsScaleZValid()) + if (increment_node && new_scaling_info->IsScaleZValid()) { double original_scaling_meters = new_scaling_info->scaleZ;