[TASK] Make log more responsive about filter operation.

This commit is contained in:
JPT committed 2015-11-27 15:14:55 +01:00
1 parent 1b71c572b9
commit 151562fdf0
1 file changed
+6 -2
+6 -2
View File
@@ -478,7 +478,9 @@ void ImageViewer::succeedingHistogrammAdaption() {
* @brief ImageViewer::applyBasicFilter
*/
void ImageViewer::applyBasicFilter() {
logFile << "Applying basic filter ...";
logFile << "Applying basic filter ..." << std::endl;
renewLogging();
int* data = filter_gui->getData();
int filter_size = filter_gui->getSize();
@@ -488,9 +490,11 @@ void ImageViewer::applyBasicFilter() {
for(int j=0; j<filter_size; j++) {
int current_data = data[i*filter_size + j];
filter_sum += abs(current_data); // support for negativ weights using abs()
logFile << "@" << i << "," << j << " -> " << current_data << std::endl;
logFile << "[" << i << "," << j << "] -> " << current_data << " ";
}
logFile << std::endl;
}
renewLogging();
int h, s, l;
// for each pixel