original_docstring: 
          Aggregate the cost volume for a pair of images
  
          :param img_ref: reference Dataset image
          :type img_ref:
              xarray.Dataset containing :
                  - im : 2D (row, col) xarray.DataArray
                  - msk (optional): 2D (row, col) xarray.DataArray
          :param img_sec: secondary Dataset image
          :type img_sec:
              xarray.Dataset containing :
                  - im : 2D (row, col) xarray.DataArray
                  - msk (optional): 2D (row, col) xarray.DataArray
          :param cv: the cost volume dataset
          :type cv:
              xarray.Dataset, with the data variables:
                  - cost_volume 3D xarray.DataArray (row, col, disp)
                  - confidence_measure 3D xarray.DataArray (row, col, indicator)
          :return: the cost volume aggregated in the dataset
          :rtype:
              xarray.Dataset, with the data variables:
                  - cost_volume 3D xarray.DataArray (row, col, disp)
                  - confidence_measure 3D xarray.DataArray (row, col, indicator)
          
docstring: Aggregate the cost volume for a pair of images
docstring_tokens: Aggregate the cost volume for a pair of images
code: def cost_volume_aggregation(self, img_ref: xr.Dataset, img_sec: xr.Dataset, cv: xr.Dataset) -> xr.Dataset:
          """
          Aggregate the cost volume for a pair of images
  
          :param img_ref: reference Dataset image
          :type img_ref:
              xarray.Dataset containing :
                  - im : 2D (row, col) xarray.DataArray
                  - msk (optional): 2D (row, col) xarray.DataArray
          :param img_sec: secondary Dataset image
          :type img_sec:
              xarray.Dataset containing :
                  - im : 2D (row, col) xarray.DataArray
                  - msk (optional): 2D (row, col) xarray.DataArray
          :param cv: the cost volume dataset
          :type cv:
              xarray.Dataset, with the data variables:
                  - cost_volume 3D xarray.DataArray (row, col, disp)
                  - confidence_measure 3D xarray.DataArray (row, col, indicator)
          :return: the cost volume aggregated in the dataset
          :rtype:
              xarray.Dataset, with the data variables:
                  - cost_volume 3D xarray.DataArray (row, col, disp)
                  - confidence_measure 3D xarray.DataArray (row, col, indicator)
          """
code_tokens: def cost_volume_aggregation ( self , img_ref : xr . Dataset , img_sec : xr . Dataset , cv : xr . Dataset ) -> xr . Dataset :
short_docstring: Aggregate the cost volume for a pair of images
short_docstring_tokens: Aggregate the cost volume for a pair of images
comment: """
          Aggregate the cost volume for a pair of images
  
          :param img_ref: reference Dataset image
          :type img_ref:
              xarray.Dataset containing :
                  - im : 2D (row, col) xarray.DataArray
                  - msk (optional): 2D (row, col) xarray.DataArray
          :param img_sec: secondary Dataset image
          :type img_sec:
              xarray.Dataset containing :
                  - im : 2D (row, col) xarray.DataArray
                  - msk (optional): 2D (row, col) xarray.DataArray
          :param cv: the cost volume dataset
          :type cv:
              xarray.Dataset, with the data variables:
                  - cost_volume 3D xarray.DataArray (row, col, disp)
                  - confidence_measure 3D xarray.DataArray (row, col, indicator)
          :return: the cost volume aggregated in the dataset
          :rtype:
              xarray.Dataset, with the data variables:
                  - cost_volume 3D xarray.DataArray (row, col, disp)
                  - confidence_measure 3D xarray.DataArray (row, col, indicator)
          """