int octaves; if (octaves < 1) { octaves = std::max (int (std::floor (log2 (std::min(pgmBuffer.width,pgmBuffer.height))) - omin -3), 1) ; }