func DecodeImageMem(data []byte) *IplImage {
	buf := CreateMatHeader(1, len(data), CV_8U)
	buf.SetData(unsafe.Pointer(&data[0]), CV_AUTOSTEP)
	defer buf.Release()

	return DecodeImage(unsafe.Pointer(buf), CV_LOAD_IMAGE_UNCHANGED)
}
func DecodeImageMem(data []byte) *IplImage {
	buf := CreateMatHeader(1, len(data), CV_8U)
	buf.SetData(unsafe.Pointer(&data[0]), CV_AUTOSTEP)
	defer buf.Release()

	return DecodeImage(unsafe.Pointer(buf), CV_LOAD_IMAGE_UNCHANGED)
}
func DecodeImageMem ( data [ ] byte ) * IplImage { buf := CreateMatHeader ( 1 , len ( data ) , CV_8U ) buf . SetData ( unsafe . Pointer ( & data [ 0 ] ) , CV_AUTOSTEP ) defer buf . Release ( ) return DecodeImage ( unsafe . Pointer ( buf ) , CV_LOAD_IMAGE_UNCHANGED ) }
/* DecodeImageMem decodes an image from an in memory byte buffer. */
/ * DecodeImageMem decodes an image from an in memory byte buffer .