pyfusion package

Submodules

pyfusion.Brovery module

pyfusion.Brovery.Brovery(src: pyfusion.utils.utils.Image, pan: pyfusion.utils.utils.Image, block_size=None, result_path=None, driver=None)[源代码]

使用`Brovery`算法进行影像融合

源影像(多光谱)可以不进行升采样处理

参数
  • src – 源影像应该是RGB颜色空间

  • pan – 全色影像,影像应该是灰度图

  • block_size – 分块大小

  • result_path – 结果影像的路径,任何gdal支持的影像格式均可

  • driver – gdal的驱动名称

返回

fusion image

返回类型

pyfusion.utils.Image

pyfusion.Brovery.BroveryByFilePath(srcpath: str, panpath: str, resultpath: str, driver: str)[源代码]

Using Brovery method fusion image

The output only support tif format

参数
  • srcpathsource image path

  • panpath – Panchromatic image path

  • resultpath – result image path

返回

None

返回类型

None

pyfusion.HIS module

pyfusion.HIS.HIS(src: pyfusion.utils.utils.Image, pan: pyfusion.utils.utils.Image, block_size=None, result_path=None, driver=None)[源代码]

使用`IHS`算法进行影像融合

源影像(多光谱)可以不进行升采样处理

参数
  • src – 源影像,应该为`pyfusion.utils.Image`类型

  • pan – 全色影像,影像应该是灰度图

  • block_size – 分块大小

  • result_path – 结果影像的路径,任何gdal支持的影像格式均可

  • driver – gdal的驱动名称

返回

fusion image

返回类型

pyfusion.utils.Image

pyfusion.HIS.HISByFilePath(srcpath: str, panpath: str, resultpath: str, driver: str)[源代码]

Using HIS method fusion image

The output only support tif format

参数
  • srcpathsource image path

  • panpath – Panchromatic image path

  • resultpath – result image path

返回

None

返回类型

None

pyfusion.PCA module

pyfusion.PCA.PCA(src: pyfusion.utils.utils.Image, pan: pyfusion.utils.utils.Image, block_size=None, result_path=None, driver=None)[源代码]

PCA function

The PCA function is fusion the src with pan based on PCA

参数
  • src – The source image, it should be multi-band the image is pyfusion.utils.Image

  • pan – The Pan image, it should be single band the image is pyfusion.utils.Image

  • block_size – 分块大小

  • result_path – 结果影像的路径,任何gdal支持的影像格式均可

  • driver – gdal的驱动名称

返回

The result image

返回类型

pyfusion.utils.Image

pyfusion.PCA.PCAByFilePath(srcpath: str, panpath: str, resultpath: str, driver: str)[源代码]

Using PCA method fusion image

The output only support tif format

参数
  • srcpathsource image path

  • panpath – Panchromatic image path

  • resultpath – result image path

返回

None

返回类型

None

Module contents

pyfusion.Brovery(src: pyfusion.utils.utils.Image, pan: pyfusion.utils.utils.Image, block_size=None, result_path=None, driver=None)[源代码]

使用`Brovery`算法进行影像融合

源影像(多光谱)可以不进行升采样处理

参数
  • src – 源影像应该是RGB颜色空间

  • pan – 全色影像,影像应该是灰度图

  • block_size – 分块大小

  • result_path – 结果影像的路径,任何gdal支持的影像格式均可

  • driver – gdal的驱动名称

返回

fusion image

返回类型

pyfusion.utils.Image

pyfusion.BroveryByFilePath(srcpath: str, panpath: str, resultpath: str, driver: str)[源代码]

Using Brovery method fusion image

The output only support tif format

参数
  • srcpathsource image path

  • panpath – Panchromatic image path

  • resultpath – result image path

返回

None

返回类型

None

pyfusion.HIS(src: pyfusion.utils.utils.Image, pan: pyfusion.utils.utils.Image, block_size=None, result_path=None, driver=None)[源代码]

使用`IHS`算法进行影像融合

源影像(多光谱)可以不进行升采样处理

参数
  • src – 源影像,应该为`pyfusion.utils.Image`类型

  • pan – 全色影像,影像应该是灰度图

  • block_size – 分块大小

  • result_path – 结果影像的路径,任何gdal支持的影像格式均可

  • driver – gdal的驱动名称

返回

fusion image

返回类型

pyfusion.utils.Image

pyfusion.HISByFilePath(srcpath: str, panpath: str, resultpath: str, driver: str)[源代码]

Using HIS method fusion image

The output only support tif format

参数
  • srcpathsource image path

  • panpath – Panchromatic image path

  • resultpath – result image path

返回

None

返回类型

None

pyfusion.PCA(src: pyfusion.utils.utils.Image, pan: pyfusion.utils.utils.Image, block_size=None, result_path=None, driver=None)[源代码]

PCA function

The PCA function is fusion the src with pan based on PCA

参数
  • src – The source image, it should be multi-band the image is pyfusion.utils.Image

  • pan – The Pan image, it should be single band the image is pyfusion.utils.Image

  • block_size – 分块大小

  • result_path – 结果影像的路径,任何gdal支持的影像格式均可

  • driver – gdal的驱动名称

返回

The result image

返回类型

pyfusion.utils.Image

pyfusion.PCAByFilePath(srcpath: str, panpath: str, resultpath: str, driver: str)[源代码]

Using PCA method fusion image

The output only support tif format

参数
  • srcpathsource image path

  • panpath – Panchromatic image path

  • resultpath – result image path

返回

None

返回类型

None