create_dl_layer_zoom_factor T_create_dl_layer_zoom_factor CreateDlLayerZoomFactor CreateDlLayerZoomFactor create_dl_layer_zoom_factor  (Operator) 
create_dl_layer_zoom_factor T_create_dl_layer_zoom_factor CreateDlLayerZoomFactor CreateDlLayerZoomFactor create_dl_layer_zoom_factor  — Create a zoom layer using size factors.
Signature 
void CreateDlLayerZoomFactor (const HTuple& DLLayerInput  , const HTuple& LayerName  , const HTuple& ScaleWidth  , const HTuple& ScaleHeight  , const HTuple& Interpolation  , const HTuple& AlignCorners  , const HTuple& GenParamName  , const HTuple& GenParamValue  , HTuple* DLLayerZoom  )
HDlLayer  HDlLayer ::CreateDlLayerZoomFactor (const HString& LayerName  , const HTuple& ScaleWidth  , const HTuple& ScaleHeight  , const HString& Interpolation  , const HString& AlignCorners  , const HTuple& GenParamName  , const HTuple& GenParamValue  ) const
HDlLayer  HDlLayer ::CreateDlLayerZoomFactor (const HString& LayerName  , double ScaleWidth  , double ScaleHeight  , const HString& Interpolation  , const HString& AlignCorners  , const HString& GenParamName  , const HString& GenParamValue  ) const
HDlLayer  HDlLayer ::CreateDlLayerZoomFactor (const char* LayerName  , double ScaleWidth  , double ScaleHeight  , const char* Interpolation  , const char* AlignCorners  , const char* GenParamName  , const char* GenParamValue  ) const
HDlLayer  HDlLayer ::CreateDlLayerZoomFactor (const wchar_t* LayerName  , double ScaleWidth  , double ScaleHeight  , const wchar_t* Interpolation  , const wchar_t* AlignCorners  , const wchar_t* GenParamName  , const wchar_t* GenParamValue  ) const  
            (
            Windows only)
           
 
static void HOperatorSet .CreateDlLayerZoomFactor (HTuple  DLLayerInput  , HTuple  layerName  , HTuple  scaleWidth  , HTuple  scaleHeight  , HTuple  interpolation  , HTuple  alignCorners  , HTuple  genParamName  , HTuple  genParamValue  , out HTuple  DLLayerZoom  )
HDlLayer  HDlLayer .CreateDlLayerZoomFactor (string layerName  , HTuple  scaleWidth  , HTuple  scaleHeight  , string interpolation  , string alignCorners  , HTuple  genParamName  , HTuple  genParamValue  )
HDlLayer  HDlLayer .CreateDlLayerZoomFactor (string layerName  , double scaleWidth  , double scaleHeight  , string interpolation  , string alignCorners  , string genParamName  , string genParamValue  )
 
def create_dl_layer_zoom_factor (dllayer_input  : HHandle, layer_name  : str, scale_width  : Union[int, float], scale_height  : Union[int, float], interpolation  : str, align_corners  : str, gen_param_name  : MaybeSequence[str], gen_param_value  : MaybeSequence[Union[int, float, str]]) -> HHandle
 
Description 
The operator create_dl_layer_zoom_factor create_dl_layer_zoom_factor CreateDlLayerZoomFactor CreateDlLayerZoomFactor create_dl_layer_zoom_factor  creates a zoom layer using
size factors and returns the layer handle in DLLayerZoom DLLayerZoom DLLayerZoom DLLayerZoom dllayer_zoom  .
The parameter DLLayerInput DLLayerInput DLLayerInput DLLayerInput dllayer_input   determines the feeding input layer and
expects the layer handle as value.
The parameter LayerName LayerName LayerName layerName layer_name   sets an individual layer name.
Note that if creating a model using create_dl_model create_dl_model CreateDlModel CreateDlModel create_dl_model   each layer of
the created network must have a unique name.
The parameters ScaleWidth ScaleWidth ScaleWidth scaleWidth scale_width   and ScaleHeight ScaleHeight ScaleHeight scaleHeight scale_height   specify the ratio
between the output and the corresponding input dimension. Together they
define the output size of the zoom layer DLLayerZoom DLLayerZoom DLLayerZoom DLLayerZoom dllayer_zoom  .
The parameter Interpolation Interpolation Interpolation interpolation interpolation   defines the interpolation mode.
Currently only the mode 'bilinear' "bilinear" "bilinear" "bilinear" "bilinear"   is supported.
The parameter AlignCorners AlignCorners AlignCorners alignCorners align_corners   defines how coordinates are transformed
from the output to the input image:
'true' "true" "true" "true" "true"  : 
 The transformation is applied in the HALCON
Non-Standard Cartesian coordinate system (edge-centered, with the
origin in the upper left corner, see chapter
Transformations / 2D Transformations ).
Using the 
 
 
 
 
 
   axis as an example, this leads to:
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
  
 
'false' "false" "false" "false" "false"  : 
 The transformation is applied in the HALCON standard
coordinate system (pixel centered, with the origin in the center
of the upper left pixel, see chapter
Transformations / 2D Transformations ).
Using the 
 
 
 
 
 
   axis as an example, this leads to:
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
  
 
 
The following generic parameters GenParamName GenParamName GenParamName genParamName gen_param_name   and the corresponding
values GenParamValue GenParamValue GenParamValue genParamValue gen_param_value   are supported:
'is_inference_output' "is_inference_output" "is_inference_output" "is_inference_output" "is_inference_output"  : 
Determines whether apply_dl_model apply_dl_model ApplyDlModel ApplyDlModel apply_dl_model   will include the output of this
layer in the dictionary DLResultBatch DLResultBatch DLResultBatch DLResultBatch dlresult_batch  even without specifying this
layer in Outputs Outputs Outputs outputs outputs  ('true' "true" "true" "true" "true"  ) or not ('false' "false" "false" "false" "false"  ).
Default:
         'false' "false" "false" "false" "false"  
 
 
Certain parameters of layers created using this operator
create_dl_layer_zoom_factor create_dl_layer_zoom_factor CreateDlLayerZoomFactor CreateDlLayerZoomFactor create_dl_layer_zoom_factor  can be set and retrieved using
further operators.
The following tables give an overview, which parameters can be set
using set_dl_model_layer_param set_dl_model_layer_param SetDlModelLayerParam SetDlModelLayerParam set_dl_model_layer_param   and which ones can be retrieved
using get_dl_model_layer_param get_dl_model_layer_param GetDlModelLayerParam GetDlModelLayerParam get_dl_model_layer_param   or get_dl_layer_param get_dl_layer_param GetDlLayerParam GetDlLayerParam get_dl_layer_param  .
Note, the operators set_dl_model_layer_param set_dl_model_layer_param SetDlModelLayerParam SetDlModelLayerParam set_dl_model_layer_param   and
get_dl_model_layer_param get_dl_model_layer_param GetDlModelLayerParam GetDlModelLayerParam get_dl_model_layer_param   require a model created by
create_dl_model create_dl_model CreateDlModel CreateDlModel create_dl_model  .
 
 
 
Generic Layer Parameters                        
 set  
 get  
 
'is_inference_output' "is_inference_output" "is_inference_output" "is_inference_output" "is_inference_output"    
 x  
 x
 
 
'num_trainable_params' "num_trainable_params" "num_trainable_params" "num_trainable_params" "num_trainable_params"    
  
 x
 
 
 
Execution Information 
Multithreading type: reentrant (runs in parallel with non-exclusive operators). 
Multithreading scope: global (may be called from any thread). 
Processed without parallelization. 
 
Parameters 
DLLayerInput DLLayerInput DLLayerInput DLLayerInput dllayer_input   (input_control)  dl_layer → HDlLayer , HTuple HHandle HTuple Htuple  (handle)  (IntPtr )  (HHandle )  (handle )  
 
Feeding layer.
 
LayerName LayerName LayerName layerName layer_name   (input_control)  string → HTuple str HTuple Htuple  (string)  (string )  (HString )  (char* )  
 
Name of the output layer.
 
ScaleWidth ScaleWidth ScaleWidth scaleWidth scale_width   (input_control)  number → HTuple Union[int, float] HTuple Htuple  (real /  integer)  (double  /  int /  long)  (double  /  Hlong)  (double  /  Hlong)  
 
Ratio output/input width of the layer.
Default:
       2.0
 
ScaleHeight ScaleHeight ScaleHeight scaleHeight scale_height   (input_control)  number → HTuple Union[int, float] HTuple Htuple  (real /  integer)  (double  /  int /  long)  (double  /  Hlong)  (double  /  Hlong)  
 
Ratio output/input height of the layer.
Default:
       2.0
 
Interpolation Interpolation Interpolation interpolation interpolation   (input_control)  string → HTuple str HTuple Htuple  (string)  (string )  (HString )  (char* )  
 
Mode of interpolation.
Default:
       
'bilinear' 
"bilinear" 
"bilinear" 
"bilinear" 
"bilinear" 
List of values:
       'bilinear' "bilinear" "bilinear" "bilinear" "bilinear" 
 
AlignCorners AlignCorners AlignCorners alignCorners align_corners   (input_control)  string → HTuple str HTuple Htuple  (string)  (string )  (HString )  (char* )  
 
Type of coordinate transformation between output/input
images.
Default:
       
'false' 
"false" 
"false" 
"false" 
"false" 
List of values:
       'false' "false" "false" "false" "false" , 'true' "true" "true" "true" "true" 
 
GenParamName GenParamName GenParamName genParamName gen_param_name   (input_control)  attribute.name(-array) → HTuple MaybeSequence[str] HTuple Htuple  (string)  (string )  (HString )  (char* )  
 
Generic input parameter names.
Default:
       []
List of values:
       'is_inference_output' "is_inference_output" "is_inference_output" "is_inference_output" "is_inference_output" 
 
GenParamValue GenParamValue GenParamValue genParamValue gen_param_value   (input_control)  attribute.value(-array) → HTuple MaybeSequence[Union[int, float, str]] HTuple Htuple  (string /  integer /  real)  (string  /  int /  long /  double)  (HString  /  Hlong /  double)  (char*  /  Hlong /  double)  
 
Generic input parameter values.
Default:
       []
Suggested values:
       'true' "true" "true" "true" "true" , 'false' "false" "false" "false" "false" 
 
DLLayerZoom DLLayerZoom DLLayerZoom DLLayerZoom dllayer_zoom   (output_control)  dl_layer → HDlLayer , HTuple HHandle HTuple Htuple  (handle)  (IntPtr )  (HHandle )  (handle )  
 
Zoom layer.
 
Alternatives 
create_dl_layer_zoom_size create_dl_layer_zoom_size CreateDlLayerZoomSize CreateDlLayerZoomSize create_dl_layer_zoom_size , 
create_dl_layer_zoom_to_layer_size create_dl_layer_zoom_to_layer_size CreateDlLayerZoomToLayerSize CreateDlLayerZoomToLayerSize create_dl_layer_zoom_to_layer_size 
Module 
Deep Learning Professional