Logo Search packages:      
Sourcecode: inkscape version File versions

float org::siox::SioxImage::getConfidence ( unsigned int  x,
unsigned int  y 
) [virtual]

Get a confidence value at the x,y coordinates given. If the coordinates are out of range, return 0

Get a confidence valueat the x,y coordinates given. If the coordinates are out of range, return 0;

Definition at line 508 of file siox.cpp.

References cmdata.

{
    if (x >= width || y >= height)
        {
        g_warning("getConfidence: out of bounds (%d,%d)/(%d,%d)",
                   x, y, width, height);
        return 0.0;
        }
    unsigned long offset = width * y + x;
    return cmdata[offset]; 
}


Generated by  Doxygen 1.6.0   Back to index