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); }
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); }
public void setBadContrast(BadContrastRes badContrast) { _badContrastRes = new BadContrastRes(badContrast.Matches); }