Casted Reference from Parent Method
This commit is contained in:
@@ -75,13 +75,13 @@ void ImageManager::ProcessImage(uint32_t width, uint32_t height, uint8_t *imgPoi
|
|||||||
if (area > fault_area)
|
if (area > fault_area)
|
||||||
{
|
{
|
||||||
drawContours(viewfinder, contours, i, Scalar(ZERO, BITS8, ZERO), 2);
|
drawContours(viewfinder, contours, i, Scalar(ZERO, BITS8, ZERO), 2);
|
||||||
//parent->fault_mgr.SaveImage(frame);
|
((FaultFinder*)(parent()))->fault_mgr->SaveImage();
|
||||||
//((FaultFinder*)(parent()))->fault_mgr.SaveImage(frame);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Send image to other servers
|
// Send image to other servers
|
||||||
SendImage(viewfinder);}
|
SendImage(viewfinder);
|
||||||
|
}
|
||||||
|
|
||||||
void ImageManager::SendImage(Mat image)
|
void ImageManager::SendImage(Mat image)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -25,4 +25,6 @@ private:
|
|||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
#include "FaultFinder.hpp"
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
Reference in New Issue
Block a user