int icv_resize(icv_image_t *bif, ICV_RESIZE_METHOD method, unsigned int out_width, unsigned int out_height, unsigned int factor) { ICV_IMAGE_VAL_INT(bif); switch (method) { case ICV_RESIZE_UNDERSAMPLE : return under_sample(bif, factor); case ICV_RESIZE_SHRINK : return shrink_image(bif, factor); case ICV_RESIZE_NINTERP : return ninterp(bif, out_width, out_height); case ICV_RESIZE_BINTERP : return binterp(bif, out_width, out_height); default : bu_log("icv_resize : Invalid Option to resize"); return -1; } }
/* * Bordered PNG Processor */ BorderedPNGProcessor::BorderedPNGProcessor(std::string fileName) :PNGProcessor(fileName), m_numVerticalLines(0), m_numHorizontalLines(0) { shrink_image(); }