nndeploy C++ API  0.2.0
nndeploy C++ API
Public Member Functions | Public Attributes | List of all members
nndeploy::preprocess::WarpAffineCvtNormTransParam Class Reference

组合的预处理 More...

#include <params.h>

Inheritance diagram for nndeploy::preprocess::WarpAffineCvtNormTransParam:
[legend]
Collaboration diagram for nndeploy::preprocess::WarpAffineCvtNormTransParam:
[legend]

Public Member Functions

virtual base::Status deserialize (rapidjson::Value &json) override
 
virtual base::Status serialize (rapidjson::Value &json, rapidjson::Document::AllocatorType &allocator) override
 
 WarpAffineCvtNormTransParam ()
 
virtual ~WarpAffineCvtNormTransParam ()
 
- Public Member Functions inherited from nndeploy::base::Param
base::Status addDropdownParam (const std::string &dropdown_param, const std::vector< std::string > &dropdown_values)
 
base::Status addIoParam (const std::string &io_param)
 
base::Status addRequiredParam (const std::string &required_param)
 
base::Status addUiParam (const std::string &ui_param)
 
base::Status clearDropdownParams ()
 
base::Status clearIoParams ()
 
base::Status clearRequiredParams ()
 
base::Status clearUiParams ()
 
virtual base::Status deserialize (const std::string &json_str)
 
virtual base::Status get (const std::string &key, base::Any &any)
 
std::map< std::string, std::vector< std::string > > getDropdownParams ()
 
std::vector< std::string > getIoParams ()
 
std::vector< std::string > getRequiredParams ()
 
std::vector< std::string > getUiParams ()
 
virtual base::Status loadFile (const std::string &path)
 
 Param ()
 
base::Status removeDropdownParam (const std::string &dropdown_param)
 
base::Status removeIoParam (const std::string &io_param)
 
base::Status removeRequiredParam (const std::string &required_param)
 
base::Status removeUiParam (const std::string &ui_param)
 
virtual base::Status saveFile (const std::string &path)
 
virtual std::string serialize ()
 
virtual base::Status set (const std::string &key, base::Any &any)
 
base::Status setDropdownParams (const std::map< std::string, std::vector< std::string >> &dropdown_params)
 
base::Status setIoParams (const std::vector< std::string > &io_params)
 
base::Status setRequiredParams (const std::vector< std::string > &required_params)
 
base::Status setUiParams (const std::vector< std::string > &ui_params)
 
virtual ~Param ()
 

Public Attributes

base::BorderType border_type_ = base::kBorderTypeConstant
 
base::Scalar2d border_val_ = 0.0f
 
int const_value_ = 114
 
base::DataFormat data_format_ = base::DataFormat::kDataFormatNCHW
 
base::DataType data_type_ = base::dataTypeOf<float>()
 
int dst_h_ = -1
 
base::PixelType dst_pixel_type_ = base::kPixelTypeRGB
 
int dst_w_ = -1
 
int h_ = -1
 
base::InterpType interp_type_ = base::kInterpTypeLinear
 
float mean_ [4] = {0.0f, 0.0f, 0.0f, 0.0f}
 
bool normalize_ = true
 
float scale_ [4]
 
base::PixelType src_pixel_type_ = base::kPixelTypeBGR
 
float std_ [4] = {1.0f, 1.0f, 1.0f, 1.0f}
 
float transform_ [2][3] = {{1.0f, 0.0f, 0.0f}, {0.0f, 1.0f, 0.0f}}
 
int w_ = -1
 
- Public Attributes inherited from nndeploy::base::Param
std::map< std::string, std::vector< std::string > > dropdown_params_
 
std::vector< std::string > io_params_
 
std::vector< std::string > required_params_
 
std::vector< std::string > ui_params_
 

Detailed Description

组合的预处理

Definition at line 485 of file params.h.

Constructor & Destructor Documentation

◆ WarpAffineCvtNormTransParam()

nndeploy::preprocess::WarpAffineCvtNormTransParam::WarpAffineCvtNormTransParam ( )
inline

Definition at line 487 of file params.h.

◆ ~WarpAffineCvtNormTransParam()

virtual nndeploy::preprocess::WarpAffineCvtNormTransParam::~WarpAffineCvtNormTransParam ( )
inlinevirtual

Definition at line 488 of file params.h.

Member Function Documentation

◆ deserialize()

virtual base::Status nndeploy::preprocess::WarpAffineCvtNormTransParam::deserialize ( rapidjson::Value &  json)
inlineoverridevirtual

Reimplemented from nndeploy::base::Param.

Definition at line 592 of file params.h.

Here is the call graph for this function:

◆ serialize()

virtual base::Status nndeploy::preprocess::WarpAffineCvtNormTransParam::serialize ( rapidjson::Value &  json,
rapidjson::Document::AllocatorType &  allocator 
)
inlineoverridevirtual

Reimplemented from nndeploy::base::Param.

Definition at line 512 of file params.h.

Here is the call graph for this function:

Member Data Documentation

◆ border_type_

base::BorderType nndeploy::preprocess::WarpAffineCvtNormTransParam::border_type_ = base::kBorderTypeConstant

Definition at line 508 of file params.h.

◆ border_val_

base::Scalar2d nndeploy::preprocess::WarpAffineCvtNormTransParam::border_val_ = 0.0f

Definition at line 509 of file params.h.

◆ const_value_

int nndeploy::preprocess::WarpAffineCvtNormTransParam::const_value_ = 114

Definition at line 505 of file params.h.

◆ data_format_

base::DataFormat nndeploy::preprocess::WarpAffineCvtNormTransParam::data_format_ = base::DataFormat::kDataFormatNCHW

Definition at line 497 of file params.h.

◆ data_type_

base::DataType nndeploy::preprocess::WarpAffineCvtNormTransParam::data_type_ = base::dataTypeOf<float>()

Definition at line 496 of file params.h.

◆ dst_h_

int nndeploy::preprocess::WarpAffineCvtNormTransParam::dst_h_ = -1

Definition at line 492 of file params.h.

◆ dst_pixel_type_

base::PixelType nndeploy::preprocess::WarpAffineCvtNormTransParam::dst_pixel_type_ = base::kPixelTypeRGB

Definition at line 495 of file params.h.

◆ dst_w_

int nndeploy::preprocess::WarpAffineCvtNormTransParam::dst_w_ = -1

Definition at line 491 of file params.h.

◆ h_

int nndeploy::preprocess::WarpAffineCvtNormTransParam::h_ = -1

Definition at line 498 of file params.h.

◆ interp_type_

base::InterpType nndeploy::preprocess::WarpAffineCvtNormTransParam::interp_type_ = base::kInterpTypeLinear

Definition at line 507 of file params.h.

◆ mean_

float nndeploy::preprocess::WarpAffineCvtNormTransParam::mean_[4] = {0.0f, 0.0f, 0.0f, 0.0f}

Definition at line 503 of file params.h.

◆ normalize_

bool nndeploy::preprocess::WarpAffineCvtNormTransParam::normalize_ = true

Definition at line 500 of file params.h.

◆ scale_

float nndeploy::preprocess::WarpAffineCvtNormTransParam::scale_[4]
Initial value:
= {1.0f / 255.0f, 1.0f / 255.0f, 1.0f / 255.0f,
1.0f / 255.0f}

Definition at line 501 of file params.h.

◆ src_pixel_type_

base::PixelType nndeploy::preprocess::WarpAffineCvtNormTransParam::src_pixel_type_ = base::kPixelTypeBGR

Definition at line 494 of file params.h.

◆ std_

float nndeploy::preprocess::WarpAffineCvtNormTransParam::std_[4] = {1.0f, 1.0f, 1.0f, 1.0f}

Definition at line 504 of file params.h.

◆ transform_

float nndeploy::preprocess::WarpAffineCvtNormTransParam::transform_[2][3] = {{1.0f, 0.0f, 0.0f}, {0.0f, 1.0f, 0.0f}}

Definition at line 490 of file params.h.

◆ w_

int nndeploy::preprocess::WarpAffineCvtNormTransParam::w_ = -1

Definition at line 499 of file params.h.


The documentation for this class was generated from the following file: