[TASK] Make log more responsive about filter operation.
This commit is contained in:
parent
1b71c572b9
commit
151562fdf0
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue