forked from BlueQuartzSoftware/simplnx
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ENH: Implement Feret/Caliper distance metrics in Find Feature Sizes.
- BlueQuartzSoftware#944 Signed-off-by: Michael Jackson <[email protected]>
- Loading branch information
1 parent
f0e0eb7
commit 613bb86
Showing
18 changed files
with
287 additions
and
134 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...plnxCore/docs/ComputeFeatureRectFilter.md → ...ore/docs/CalculateFeatureBoundingBoxes.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
# Compute Feature Corners | ||
# Calculate Feature Bounding Box | ||
|
||
## Group (Subgroup) | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
41 changes: 41 additions & 0 deletions
41
src/Plugins/SimplnxCore/src/SimplnxCore/Filters/Algorithms/CalculateFeatureBoundingBoxes.hpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
#pragma once | ||
|
||
#include "SimplnxCore/SimplnxCore_export.hpp" | ||
|
||
#include "simplnx/DataStructure/DataPath.hpp" | ||
#include "simplnx/DataStructure/DataStructure.hpp" | ||
#include "simplnx/Filter/IFilter.hpp" | ||
|
||
namespace nx::core | ||
{ | ||
|
||
struct SIMPLNXCORE_EXPORT CalculateFeatureBoundingBoxesInputValues | ||
{ | ||
DataPath FeatureIdsArrayPath; | ||
DataPath FeatureDataAttributeMatrixPath; | ||
DataPath FeatureRectArrayPath; | ||
}; | ||
|
||
class SIMPLNXCORE_EXPORT CalculateFeatureBoundingBoxes | ||
{ | ||
public: | ||
CalculateFeatureBoundingBoxes(DataStructure& dataStructure, const IFilter::MessageHandler& mesgHandler, const std::atomic_bool& shouldCancel, CalculateFeatureBoundingBoxesInputValues* inputValues); | ||
~CalculateFeatureBoundingBoxes() noexcept; | ||
|
||
CalculateFeatureBoundingBoxes(const CalculateFeatureBoundingBoxes&) = delete; | ||
CalculateFeatureBoundingBoxes(CalculateFeatureBoundingBoxes&&) noexcept = delete; | ||
CalculateFeatureBoundingBoxes& operator=(const CalculateFeatureBoundingBoxes&) = delete; | ||
CalculateFeatureBoundingBoxes& operator=(CalculateFeatureBoundingBoxes&&) noexcept = delete; | ||
|
||
Result<> operator()(); | ||
|
||
const std::atomic_bool& getCancel(); | ||
|
||
private: | ||
DataStructure& m_DataStructure; | ||
const CalculateFeatureBoundingBoxesInputValues* m_InputValues = nullptr; | ||
const std::atomic_bool& m_ShouldCancel; | ||
const IFilter::MessageHandler& m_MessageHandler; | ||
}; | ||
|
||
} // namespace nx::core |
41 changes: 0 additions & 41 deletions
41
src/Plugins/SimplnxCore/src/SimplnxCore/Filters/Algorithms/ComputeFeatureRect.hpp
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.