#include #include #include #include #include Convex::Convex() : mWidth(0), mHeight(0), mxHalf(0), myHalf(0) { } Convex::~Convex() { } Image Convex::performConvex(Image &srcImage,GUIWindow &window) { RGB888 rgb888; Image dstImage; POINT tempPoint; double scaleFactor; double tempFactor; mWidth=srcImage.width(); mHeight=srcImage.height(); mxHalf=mWidth/2; myHalf=mHeight/2; dstImage.newImage(mWidth,mHeight,window); for(int y=0;y=mWidth)continue; if(tempPoint.y>=mHeight)continue; srcImage.getAt(y,x,rgb888); dstImage.setAt(tempPoint.y,tempPoint.x,rgb888); } } return dstImage; }