CHANGED:applied the OpenCv saveColoredImageFile functions,sort of minor modifications made