Metadata-Version: 2.1
Name: ScaleConvertion
Version: 0.5
Summary: Helps achieve surface reflectance scale conversion
Home-page: https://github.com/qxcnwu
Author: qxcnwu
Author-email: qxcnwu@gmail.com
Maintainer: qxcnwu
Maintainer-email: qxcnwu@gmail.com
License: MIT License
Platform: UNKNOWN
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: Topic :: Software Development :: Build Tools
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Requires-Python: >=3.4
Requires-Dist: tqdm
Requires-Dist: numpy
Requires-Dist: pandas
Requires-Dist: torch
Requires-Dist: timm
Requires-Dist: exifread
Requires-Dist: qt5-applications
Requires-Dist: matplotlib
Requires-Dist: torchvision
Requires-Dist: requests
Requires-Dist: colour
Requires-Dist: opencv-python
Requires-Dist: gdal

ScaleConvertion
-----------------------------------------------------------------

ResTransformer-based surface reflectance scale conversion tool

As a critical component of many remote sensing satellites and remote sensing model validation, image scale surface quantitative parameters are often affected by scale effects in the acquisition process, resulting in deviations in the accuracy of image scale parameters. We propose ResTransformer, a deep learning model for scale conversion of surface reflectance combined with UAV images, which can adapt to surface reflectance scale conversion scenarios with different sizes, heterogeneous sample areas and arbitrary sampling methods. The method provides a promising, highly accurate, robust approach for image element-scale surface reflectance scale conversion.

1. Processing hyperspectral images

.. code:: python

    from ScaleConvertion.SC import read_tiff

    if __name__ == '__main__':
        tiff_path=r"D:\Transformer\test\dat1.tif"
        read_tiff(feature_bands=[[0,8],[8,16],[16,24]],save_dir=r"D:\Transformer\test",tiff_path=tiff_path,sen_alt=[9,9,9,9,9,9])


2. Processing uav images

.. code:: python

    from ScaleConvertion.SC import read_tiff, read_png

    if __name__ == '__main__':
        tiff_path = r"D:\Transformer\test\dat1.tif"
        img_path = r"G:\UAVPICTURRE\13瑁稿湡-涓婁笢涓嬭タ-H975m-6m-116.JPG"
        save_dir = "tmp"
        read_png(img_path=img_path, save_dir=save_dir, pixel=[2, 4, 8, 10, 20, 30])


