mirror of
https://github.com/kerberos-io/openalpr-base.git
synced 2025-10-07 02:13:17 +08:00
Removed unused "cleanupColors" function
This commit is contained in:
@@ -122,43 +122,6 @@ void PlateLines::processImage(Mat inputImage, CharacterRegion* charRegion, float
|
||||
|
||||
|
||||
|
||||
void PlateLines::cleanupColors(Mat inputImage, Mat outputImage)
|
||||
{
|
||||
if (this->config->debugGeneral)
|
||||
cout << "LicensePlate::cleanupColors" << endl;
|
||||
|
||||
//Mat normalized(inputImage.size(), inputImage.type());
|
||||
|
||||
Mat intermediate(inputImage.size(), inputImage.type());
|
||||
|
||||
normalize(inputImage, intermediate, 0, 255, CV_MINMAX );
|
||||
|
||||
// Equalize intensity:
|
||||
if(intermediate.channels() >= 3)
|
||||
{
|
||||
Mat ycrcb;
|
||||
|
||||
cvtColor(intermediate,ycrcb,CV_BGR2YCrCb);
|
||||
|
||||
vector<Mat> channels;
|
||||
split(ycrcb,channels);
|
||||
|
||||
equalizeHist(channels[0], channels[0]);
|
||||
|
||||
merge(channels,ycrcb);
|
||||
|
||||
cvtColor(ycrcb,intermediate,CV_YCrCb2BGR);
|
||||
|
||||
//ycrcb.release();
|
||||
}
|
||||
|
||||
bilateralFilter(intermediate, outputImage, 3, 25, 35);
|
||||
|
||||
if (this->config->debugGeneral)
|
||||
{
|
||||
displayImage(config, "After cleanup", outputImage);
|
||||
}
|
||||
}
|
||||
|
||||
vector<LineSegment> PlateLines::getLines(Mat edges, float sensitivityMultiplier, bool vertical)
|
||||
{
|
||||
|
@@ -48,7 +48,6 @@ class PlateLines
|
||||
Config* config;
|
||||
bool debug;
|
||||
|
||||
void cleanupColors(Mat inputImage, Mat outputImage);
|
||||
Mat customGrayscaleConversion(Mat src);
|
||||
void findLines(Mat inputImage);
|
||||
vector<LineSegment> getLines(Mat edges, float sensitivityMultiplier, bool vertical);
|
||||
|
Reference in New Issue
Block a user