Maybe a on C:

#define Maybe
#define Just
#define Nothing 0

Point2Df interpolatePt( Image *frame, Point2D *p
                      , Interpolation method
                      , Maybe Pixel thrs);