_ImageFormatConverterParams.h 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265
  1. //-----------------------------------------------------------------------------
  2. // Basler pylon SDK
  3. // Copyright (c) 2010-2021 Basler AG
  4. // http://www.baslerweb.com
  5. //-----------------------------------------------------------------------------
  6. /*!
  7. \file
  8. \brief A parameter class containing all parameters as members that are available for Image Format Converter
  9. The parameter class is used by the \c Pylon::CImageFormatConverter class.
  10. The \c Pylon::CImageFormatConverter creates new images by converting a source image to a different format.
  11. Once the format converter is configured it can convert almost all image formats supported by Basler camera devices.
  12. The \ref sample_Utility_ImageFormatConverter code sample shows the use of the Image Format Converter class.
  13. */
  14. //-----------------------------------------------------------------------------
  15. // This file is generated automatically
  16. // Do not modify!
  17. //-----------------------------------------------------------------------------
  18. #ifndef BASLER_PYLON_IMAGEFORMATCONVERTERPARAMS_H
  19. #define BASLER_PYLON_IMAGEFORMATCONVERTERPARAMS_H
  20. #pragma once
  21. // common parameter types
  22. #include <pylon/ParameterIncludes.h>
  23. #include <pylon/EnumParameterT.h>
  24. namespace Basler_ImageFormatConverterParams
  25. {
  26. //**************************************************************************************************
  27. // Enumerations
  28. //**************************************************************************************************
  29. //! Valid values for InconvertibleEdgeHandling
  30. enum InconvertibleEdgeHandlingEnums
  31. {
  32. InconvertibleEdgeHandling_Clip, //!< Rows and columns that can't be converted are removed from the output image - Applies to: ImageFormatConverter
  33. InconvertibleEdgeHandling_Extend, //!< Rows and columns that can't be converted are filled by extrapolating image data from neighboring rows and columns - Applies to: ImageFormatConverter
  34. InconvertibleEdgeHandling_SetZero //!< Rows and columns that can't be converted are set to zero - Applies to: ImageFormatConverter
  35. };
  36. //! Valid values for MonoConversionMethod
  37. enum MonoConversionMethodEnums
  38. {
  39. MonoConversionMethod_Gamma, //!< When converting images, Gamma conversion is used - Applies to: ImageFormatConverter
  40. MonoConversionMethod_Truncate //!< When converting images, image data is shifted - Applies to: ImageFormatConverter
  41. };
  42. //! Valid values for OutputBitAlignment
  43. enum OutputBitAlignmentEnums
  44. {
  45. OutputBitAlignment_LsbAligned, //!< Image data is aligned with the least significant bit - Applies to: ImageFormatConverter
  46. OutputBitAlignment_MsbAligned //!< The data is aligned at the most significant bit - Applies to: ImageFormatConverter
  47. };
  48. //! Valid values for OutputOrientation
  49. enum OutputOrientationEnums
  50. {
  51. OutputOrientation_BottomUp, //!< The last row of the image is located at the start of the image buffer - Applies to: ImageFormatConverter
  52. OutputOrientation_TopDown, //!< The first row of the image is located at the start of the image buffer - Applies to: ImageFormatConverter
  53. OutputOrientation_Unchanged //!< The orientation of the image remains the same - Applies to: ImageFormatConverter
  54. };
  55. //**************************************************************************************************
  56. // Parameter class CImageFormatConverterParams_Params_v6_3_0
  57. //**************************************************************************************************
  58. /*!
  59. \brief A parameter class containing all parameters as members that are available for Image Format Converter
  60. The parameter class is used by the \c Pylon::CImageFormatConverter class.
  61. The \c Pylon::CImageFormatConverter creates new images by converting a source image to a different format.
  62. Once the format converter is configured it can convert almost all image formats supported by Basler camera devices.
  63. The \ref sample_Utility_ImageFormatConverter code sample shows the use of the Image Format Converter class.
  64. */
  65. class PYLONBASE_API CImageFormatConverterParams_Params_v6_3_0
  66. {
  67. //----------------------------------------------------------------------------------------------------------------
  68. // Implementation
  69. //----------------------------------------------------------------------------------------------------------------
  70. protected:
  71. // If you want to show the following methods in the help file
  72. // add the string HIDE_CLASS_METHODS to the ENABLED_SECTIONS tag in the doxygen file
  73. //! \cond HIDE_CLASS_METHODS
  74. //! Constructor
  75. CImageFormatConverterParams_Params_v6_3_0( void );
  76. //! Destructor
  77. ~CImageFormatConverterParams_Params_v6_3_0( void );
  78. //! Initializes the references
  79. void _Initialize( GENAPI_NAMESPACE::INodeMap* );
  80. //! \endcond
  81. private:
  82. class CImageFormatConverterParams_Params_v6_3_0_Data;
  83. CImageFormatConverterParams_Params_v6_3_0_Data* m_pCImageFormatConverterParams_Params_v6_3_0_Data;
  84. //----------------------------------------------------------------------------------------------------------------
  85. // References to features
  86. //----------------------------------------------------------------------------------------------------------------
  87. public:
  88. //! \name Categories: MonoConversion
  89. //@{
  90. /*!
  91. \brief Additional shifting value used for converting monochrome images - Applies to: ImageFormatConverter
  92. Additional shifting value used for converting monochrome images. Only effective if the Mono Conversion Method parameter is set to Truncate. If the parameter value isn't zero, the image data is converted using a lookup table. Shifted values exceeding the maximum output value boundary are set to the maximum allowed value. Negative values are treated as right-shifted values.
  93. Visibility: Beginner
  94. */
  95. Pylon::IIntegerEx& AdditionalLeftShift;
  96. //@}
  97. //! \name Categories: MonoConversion
  98. //@{
  99. /*!
  100. \brief Gamma value for converting monochrome images - Applies to: ImageFormatConverter
  101. Gamma value for converting monochrome images. The image data is converted using a lookup table.
  102. Visibility: Beginner
  103. */
  104. Pylon::IFloatEx& Gamma;
  105. //@}
  106. //! \name Categories: Root
  107. //@{
  108. /*!
  109. \brief Sets how to handle rows and columns that can't be converted - Applies to: ImageFormatConverter
  110. Visibility: Beginner
  111. */
  112. Pylon::IEnumParameterT<InconvertibleEdgeHandlingEnums>& InconvertibleEdgeHandling;
  113. //@}
  114. //! \name Categories: MonoConversion
  115. //@{
  116. /*!
  117. \brief Sets the conversion method for monochrome images - Applies to: ImageFormatConverter
  118. Visibility: Beginner
  119. */
  120. Pylon::IEnumParameterT<MonoConversionMethodEnums>& MonoConversionMethod;
  121. //@}
  122. //! \name Categories: Root
  123. //@{
  124. /*!
  125. \brief Sets the alignment of the bits in the target pixel type - Applies to: ImageFormatConverter
  126. Sets the alignment of the bits in the target pixel type if the target bit depth is greater than the source bit depth, e.g., if you are converting from a 10-bit to a 16-bit format.
  127. Visibility: Beginner
  128. */
  129. Pylon::IEnumParameterT<OutputBitAlignmentEnums>& OutputBitAlignment;
  130. //@}
  131. //! \name Categories: Root
  132. //@{
  133. /*!
  134. \brief Sets the vertical orientation of the output image in the buffer - Applies to: ImageFormatConverter
  135. Visibility: Beginner
  136. */
  137. Pylon::IEnumParameterT<OutputOrientationEnums>& OutputOrientation;
  138. //@}
  139. //! \name Categories: Root
  140. //@{
  141. /*!
  142. \brief Number of additional data bytes at the end of each line - Applies to: ImageFormatConverter
  143. Number of additional data bytes at the end of each line. These bytes are set to zero during the conversion.
  144. Visibility: Beginner
  145. */
  146. Pylon::IIntegerEx& OutputPaddingX;
  147. //@}
  148. private:
  149. //! \cond HIDE_CLASS_METHODS
  150. //! not implemented copy constructor
  151. CImageFormatConverterParams_Params_v6_3_0(CImageFormatConverterParams_Params_v6_3_0&);
  152. //! not implemented assignment operator
  153. CImageFormatConverterParams_Params_v6_3_0& operator=(CImageFormatConverterParams_Params_v6_3_0&);
  154. //! \endcond
  155. };
  156. /*!
  157. \brief A parameter class containing all parameters as members that are available for Image Format Converter
  158. The parameter class is used by the \c Pylon::CImageFormatConverter class.
  159. The \c Pylon::CImageFormatConverter creates new images by converting a source image to a different format.
  160. Once the format converter is configured it can convert almost all image formats supported by Basler camera devices.
  161. The \ref sample_Utility_ImageFormatConverter code sample shows the use of the Image Format Converter class.
  162. */
  163. class CImageFormatConverterParams_Params : public CImageFormatConverterParams_Params_v6_3_0
  164. {
  165. //----------------------------------------------------------------------------------------------------------------
  166. // Implementation
  167. //----------------------------------------------------------------------------------------------------------------
  168. protected:
  169. // If you want to show the following methods in the help file
  170. // add the string HIDE_CLASS_METHODS to the ENABLED_SECTIONS tag in the doxygen file
  171. //! \cond HIDE_CLASS_METHODS
  172. //! Constructor
  173. CImageFormatConverterParams_Params( void )
  174. {
  175. }
  176. //! Destructor
  177. ~CImageFormatConverterParams_Params( void )
  178. {
  179. }
  180. //! Initializes the references
  181. void _Initialize( GENAPI_NAMESPACE::INodeMap* pNodeMap )
  182. {
  183. CImageFormatConverterParams_Params_v6_3_0::_Initialize( pNodeMap );
  184. }
  185. //! \endcond
  186. };
  187. } // namespace Basler_ImageFormatConverterParams
  188. #endif // BASLER_PYLON_IMAGEFORMATCONVERTERPARAMS_H