OpenToonz - An open-source full-featured 2D animation creation software
C
Fix CheckEdgeExistance->CheckEdgeExistence
luz paz20fd52c9f94a
diff --git a/toonz/sources/toonz/ObjectTracker.cpp b/toonz/sources/toonz/ObjectTracker.cppindex d79a781db..4765b198a 100644--- a/toonz/sources/toonz/ObjectTracker.cpp+++ b/toonz/sources/toonz/ObjectTracker.cpp@@ -218,7 +218,7 @@ void CObjectTracker::FindHistogram(TRaster32P *frame, float(*histogram),x <= std::min(m_sTrackingObject.X + m_sTrackingObject.W / 2,m_nImageWidth - 1);x++) {- E = CheckEdgeExistance(frame, x, y);+ E = CheckEdgeExistence(frame, x, y);pixelValues = GetPixelValues(frame, x, y);@@ -292,7 +292,7 @@ void CObjectTracker::FindHistogramBackground(TRaster32P *frame,(x <= (m_sTrackingObject.X + m_sTrackingObject.W / 2)))continue;- E = CheckEdgeExistance(frame, x, y);+ E = CheckEdgeExistence(frame, x, y);pixelValues = GetPixelValues(frame, x, y);@@ -370,7 +370,7 @@ void CObjectTracker::FindWightsAndCOM(TRaster32P *frame, float(*histogram)) {x <= std::min(m_sTrackingObject.X + m_sTrackingObject.W / 2,m_nImageWidth - 1);x++) {- E = CheckEdgeExistance(frame, x, y);+ E = CheckEdgeExistence(frame, x, y);pixelValues = GetPixelValues(frame, x, y);@@ -398,7 +398,7 @@ void CObjectTracker::FindWightsAndCOM(TRaster32P *frame, float(*histogram)) {//--------------------------------------------------------------------------------------------------------// Edge Information of pixel-UBYTE8 CObjectTracker::CheckEdgeExistance(TRaster32P *frame, short _x,+UBYTE8 CObjectTracker::CheckEdgeExistence(TRaster32P *frame, short _x,short _y) {UBYTE8 E = 0;short GrayCenter = 0;diff --git a/toonz/sources/toonz/ObjectTracker.h b/toonz/sources/toonz/ObjectTracker.hindex 2bc4236b8..d1c5e1644 100644--- a/toonz/sources/toonz/ObjectTracker.h+++ b/toonz/sources/toonz/ObjectTracker.h@@ -94,7 +94,7 @@ private:void FindWightsAndCOM(TRaster32P *frame, float(*histogram));//--------------------------------------------------------------------------------------------------------- UBYTE8 CheckEdgeExistance(TRaster32P *frame, short _x, short _y);+ UBYTE8 CheckEdgeExistence(TRaster32P *frame, short _x, short _y);//--------------------------------------------------------------------------------------------------------void UpdateInitialHistogram(float(*histogram));