opencv/highgui.go
func SaveImage(filename string, image *IplImage, params []int) int {
	name_c := C.CString(filename)
	defer C.free(unsafe.Pointer(name_c))
	var firstParam *C.int
	if len(params) > 0 {
		var params_c []C.int
		for _, param := range params {
			params_c = append(params_c, C.int(param))
		}
		firstParam = &params_c[0]
	}
	rv := C.cvSaveImage(name_c, unsafe.Pointer(image), firstParam)
	return int(rv)
}
func SaveImage(filename string, image *IplImage, params []int) int {
	name_c := C.CString(filename)
	defer C.free(unsafe.Pointer(name_c))
	var firstParam *C.int
	if len(params) > 0 {
		var params_c []C.int
		for _, param := range params {
			params_c = append(params_c, C.int(param))
		}
		firstParam = &params_c[0]
	}
	rv := C.cvSaveImage(name_c, unsafe.Pointer(image), firstParam)
	return int(rv)
}
/* save image to file */