示例#1
0
        public void run()
        {
            for (int i = 0; i < num_images; i++)
            {
                Histogram hist = images[i].getHist();
                //for each image check if is bad contrast
                if (isBadContrast(hist))
                    matches.Add(images[i].getPath()); //if is bad contrast add to matches

                runStatus = (int)Math.Round(((i + 1) / (float)num_images) * 100);
            }
            runStatus = 100;
            results = new BadContrastRes(matches);
        }
示例#2
0
 public void run()
 {
     for (int i = 0; i < num_images; i++)
     {
         Histogram hist = images[i].getHist();
         //for each image check if is bad contrast
         if (isBadContrast(hist))
         {
             matches.Add(images[i].getPath()); //if is bad contrast add to matches
         }
         runStatus = (int)Math.Round(((i + 1) / (float)num_images) * 100);
     }
     runStatus = 100;
     results   = new BadContrastRes(matches);
 }
示例#3
0
 public void setBadContrast(BadContrastRes badContrast)
 {
     _badContrastRes = new BadContrastRes(badContrast.Matches);
 }
示例#4
0
 public void setBadContrast(BadContrastRes badContrast)
 {
     _badContrastRes = new BadContrastRes(badContrast.Matches);
 }