Skip to content

Commit 28d4a04

Browse files
committed
Fixed data store changes
Signed-off-by: Jared Duffey <[email protected]>
1 parent b208237 commit 28d4a04

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

src/SimplnxReview/Filters/Algorithms/ComputeLocalAverageCAxisMisalignments.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ class FindLocalAverageMisalignments
7272

7373
if constexpr(MisalignmentArguments::CalculatingBiasedAverage)
7474
{
75-
m_NumFeaturesPerParent[parentId]++;
75+
m_NumFeaturesPerParent[parentId].inc();
7676
m_LocalCAxisMisalignments[parentId] += m_AvgCAxisMisalignments[i];
7777
}
7878
}

src/SimplnxReview/Filters/Algorithms/ComputeMicroTextureRegions.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ Result<> ComputeMicroTextureRegions::operator()()
4747
std::vector<float32> microTextureRegionZMins(numMicroTextureRegions, spacing[2] * static_cast<float32>(zPoints));
4848
std::vector<float32> microTextureRegionZMaxs(numMicroTextureRegions, 0.0f);
4949

50-
std::for_each(featureIds.begin(), featureIds.end(), [&microTextureRegionNumCells](const int32 id) mutable { microTextureRegionNumCells[id]++; });
50+
std::for_each(featureIds.begin(), featureIds.end(), [&microTextureRegionNumCells](const int32 id) mutable { microTextureRegionNumCells[id].inc(); });
5151

5252
float32 x, y, z;
5353
usize zStride, yStride;

src/SimplnxReview/Filters/Algorithms/GroupMicroTextureRegions.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,7 @@ int GroupMicroTextureRegions::getSeed(int32 newFid)
274274
// dividing by the magnitudes (they would be 1)
275275
MatrixMath::Normalize3x1(c1.data());
276276
MatrixMath::Copy3x1(c1.data(), m_AvgCAxes.data());
277-
MatrixMath::Multiply3x1withConstant(m_AvgCAxes.data(), volumes[voxelSeed]);
277+
MatrixMath::Multiply3x1withConstant(m_AvgCAxes.data(), volumes.getValue(voxelSeed));
278278
}
279279
}
280280

@@ -355,7 +355,7 @@ bool GroupMicroTextureRegions::determineGrouping(int32 referenceFeature, int32 n
355355
if(m_InputValues->UseRunningAverage)
356356
{
357357
auto& volumes = m_DataStructure.getDataRefAs<Float32Array>(m_InputValues->VolumesArrayPath);
358-
MatrixMath::Multiply3x1withConstant(c2.data(), volumes[neighborFeature]);
358+
MatrixMath::Multiply3x1withConstant(c2.data(), volumes.getValue(neighborFeature));
359359
MatrixMath::Add3x1s(m_AvgCAxes.data(), c2.data(), m_AvgCAxes.data());
360360
}
361361
return true;

0 commit comments

Comments
 (0)