Logo Search packages:      
Sourcecode: inkscape version File versions

void org::siox::SioxImage::setConfidence ( unsigned int  x,
unsigned int  y,
float  confval 
) [virtual]

Set a confidence value at the x,y coordinates to the given value. If the coordinates are out of range, do nothing.

Definition at line 490 of file siox.cpp.

References cmdata, and error().

    if (x >= width || y >= height)
        error("setConfidence: out of bounds (%d,%d)/(%d,%d)",
                   x, y, width, height);
    unsigned long offset = width * y + x;
    cmdata[offset] = confval; 

Generated by  Doxygen 1.6.0   Back to index