//==================================================================== | |
// morpho_noise_reduction.h | |
// [SJIS/CRLF] { »û®©®»èp } | |
// | |
// Copyright(c) 2006-2012 Morpho,Inc. | |
//==================================================================== | |
#ifndef MORPHO_NOISE_REDUCTION_H | |
# define MORPHO_NOISE_REDUCTION_H | |
//-------------------------------------------------------------------- | |
# include "morpho_api.h" | |
# include "morpho_error.h" | |
# include "morpho_image_data.h" | |
# include "morpho_motion_data.h" | |
# include "morpho_rect_int.h" | |
//-------------------------------------------------------------------- | |
# ifdef __cplusplus | |
extern "C" { | |
# endif | |
//==================================================================== | |
/** o[W¶ñ */ | |
# define MORPHO_NOISE_REDUCTION_VERSION "Morpho Noise Reduction Ver.0.9.0 2012/08/09" | |
//-------------------------------------------------------------------- | |
/** mCYí */ | |
typedef struct | |
{ | |
void *p; /**< à\¢ÌÖÌ|C^ */ | |
} morpho_NoiseReduction; | |
//-------------------------------------------------------------------- | |
/** | |
* o[W¶ñðæ¾ | |
* | |
* @return o[W¶ñ(MORPHO_IMAGE_STABILIZER_VERSION) | |
*/ | |
MORPHO_API(const char *) | |
morpho_NoiseReduction_getVersion(void); | |
/** | |
* mCYÉKvÈTCYðæ¾ | |
* wèÅ«étH[}bgÍTRMðQÆB | |
* | |
* @param[in] width üÍæÌ | |
* @param[in] height üÍæ̳ | |
* @param[in] format ætH[}bg¶ñ | |
* @return KvÈTCY(byte) | |
*/ | |
MORPHO_API(int) | |
morpho_NoiseReduction_getBufferSize( | |
int width, | |
int height, | |
const char *format); | |
/** | |
* mCYíÌú» | |
* | |
* @param[out] reducer mCYí | |
* @param[out] buffer mCYíÉèÄéÖÌ|C^ | |
* @param[in] buffer_size mCYíÉèÄéÌTCY. | |
* @return G[R[h(morpho_error.h) | |
*/ | |
MORPHO_API(int) | |
morpho_NoiseReduction_initialize( | |
morpho_NoiseReduction *reducer, | |
void *buffer, | |
int buffer_size); | |
/** | |
* mCYíÌN[Abv | |
* | |
* @param[in,out] reducer mCYí | |
* @return G[R[h(morpho_error.h) | |
*/ | |
MORPHO_API(int) | |
morpho_NoiseReduction_finalize( | |
morpho_NoiseReduction *reducer); | |
/** | |
* mCY: Jn | |
* oÍæ(output_image)Í1ÚÌüÍæƯ¶ÅàÇ¢ | |
* | |
* @param[in,out] reducer mCYí | |
* @param[out] output_image oÍæ | |
* @return G[R[h(morpho_error.h) | |
*/ | |
MORPHO_API(int) | |
morpho_NoiseReduction_start( | |
morpho_NoiseReduction *reducer, | |
morpho_ImageData *output_image); | |
/** | |
* mCY: mCY | |
* | |
* @param[in,out] reducer mCYí | |
* @param[out] input_image oÍæ | |
* @return G[R[h(morpho_error.h) | |
*/ | |
MORPHO_API(int) | |
morpho_NoiseReduction_reduceNoise( | |
morpho_NoiseReduction *reducer, | |
morpho_ImageData *input_image); | |
/** | |
* ætH[}bgðæ¾ | |
* initialize()ÀsãÉæ¾Â\ | |
* obt@TCYÍ32ÈãÆ·é±Æ | |
* | |
* @param[in,out] reducer mCYí | |
* @param[out] format ætH[}bg¶ñªi[³êé | |
* @param[in] buffer_size obt@TCY | |
* @return G[R[h(morpho_error.h) | |
*/ | |
MORPHO_API(int) | |
morpho_NoiseReduction_getImageFormat( | |
morpho_NoiseReduction *reducer, | |
char *format, | |
const int buffer_size); | |
/** | |
* PxmCYxxðæ¾ | |
* initialize()ÀsãÉæ¾Â\ | |
* | |
* @param[in,out] reducer mCYí | |
* @param[out] level PxmCYxxªi[³êé | |
* @return G[R[h(morpho_error.h) | |
*/ | |
MORPHO_API(int) | |
morpho_NoiseReduction_getLumaNoiseReductionLevel( | |
morpho_NoiseReduction *reducer, | |
int *level); | |
/** | |
* N}mCYxxðæ¾ | |
* initialize()ÀsãÉæ¾Â\ | |
* | |
* @param[in,out] reducer mCYí | |
* @param[out] level N}mCYxxªi[³êé | |
* @return G[R[h(morpho_error.h) | |
*/ | |
MORPHO_API(int) | |
morpho_NoiseReduction_getChromaNoiseReductionLevel( | |
morpho_NoiseReduction *reducer, | |
int *level); | |
/** | |
* ætH[}bgðÝè | |
* initialize()Àsã©Âstart()ÀsOÉÝèÂ\ | |
* wèÅ«étH[}bgÍTRMðQÆB | |
* | |
* @param[in,out] reducer mCYí | |
* @param[in] format ætH[}bg¶ñ | |
* @return G[R[h(morpho_error.h) | |
*/ | |
MORPHO_API(int) | |
morpho_NoiseReduction_setImageFormat( | |
morpho_NoiseReduction *reducer, | |
const char *format); | |
/** | |
* PxmCYxxðÝè | |
* initialize()Àsã©Âstart()ÀsOÉÝèÂ\ | |
* | |
* @param[in,out] reducer mCYí | |
* @param[in] level PxmCYxx(0-7) | |
* @return G[R[h(morpho_error.h) | |
*/ | |
MORPHO_API(int) | |
morpho_NoiseReduction_setLumaNoiseReductionLevel( | |
morpho_NoiseReduction *reducer, | |
int level); | |
/** | |
* N}mCYxxðÝè | |
* initialize()Àsã©Âstart()ÀsOÉÝèÂ\ | |
* | |
* @param[in,out] reducer mCYí | |
* @param[in] level N}mCYxx(0-7) | |
* @return G[R[h(morpho_error.h) | |
*/ | |
MORPHO_API(int) | |
morpho_NoiseReduction_setChromaNoiseReductionLevel( | |
morpho_NoiseReduction *reducer, | |
int level); | |
//==================================================================== | |
# ifdef __cplusplus | |
} // extern "C" | |
# endif | |
//-------------------------------------------------------------------- | |
#endif // !MORPHO_IMAGE_STABILIZER3_H | |
//==================================================================== | |
// [EOF] |