Skip to content
Open
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
4 changes: 2 additions & 2 deletions src/api/c/confidence_connected.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ af_array ccHelper(const Array<T>& img, const Array<uint>& seedx,

Array<CT> segmented = floodFill(in, seedx, seedy, CT(1), lower, upper);

if (std::abs<CT>(s1var) < epsilon) {
if (std::abs(s1var) < epsilon) {
// If variance is close to zero, stop after initial segmentation
return getHandle(labelSegmented(segmented));
}
Expand Down Expand Up @@ -188,7 +188,7 @@ af_array ccHelper(const Array<T>& img, const Array<uint>& seedx,
if (newLow > minSeedIntensity) { newLow = minSeedIntensity; }
if (newHigh < maxSeedIntensity) { newHigh = maxSeedIntensity; }

if (std::abs<CT>(validsVar) < epsilon) {
if (std::abs(validsVar) < epsilon) {
// If variance is close to zero, discontinue iterating.
continueLoop = false;
}
Expand Down