Beispiel #1
0
    void process() const {
        MedianWindow window(m_radius);

        /* prefill all lines except last */
        for (int y = -m_radius; y < m_radius; ++y)
            fillLine(m_start.y() + y, window);

        int x = m_start.x();
        int y = m_start.y();

        for (int i = 0; i < m_height; ++i, ++y) {
            fillLine(y + m_radius, window);
            m_image.setPixel(x, y, setGray(m_orig.pixel(x, y), window.median()));
        }
    }
/**
* Constructor.
*/
UnitNondimensional::UnitNondimensional(){

    setGray(0);
    setValue(0);
}
/**
* Sets a gray and a value into a nondimensional unit.
*
* @param gray The gray value what will be set.
* @param value The value what will be set.
*/
void UnitNondimensional::setXYAxis(int gray, float value){

    setGray(gray);
    setValue(value);
}
Beispiel #4
0
 QRgb map(QRgb pixel, QPoint) const {
     return setGray(pixel, m_corrector(qGray(pixel)));
 }
Beispiel #5
0
static void cdj_setGray(int gray)
{
   setGray(gray);
}