1 Star 0 Fork 0

焦润之 / SAR.AI

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
MIT

SAR Image Classification with MLPH

Modified Multi-Level Pattern Histograms (MLPH) for SAR image classification.

Some results for different regions in and around New York City area:

Dependencies

Platform tested on: Ubuntu 16.04

Softwares/Packages required:

  • Python >2.6
  • pickle
  • numpy
  • sklearn
  • skimage
  • scipy

Instructions to Run the Application

  • Open the terminal inside the directory “IP_Project_Group23”

  • To run MLPH on training images and train SVM & test on hold-out set:

$ python -m sarclf -run_mlph 1 -train_svm 1

  • To run pretrained SVM on test image pixels:

$ python -m sarclf

  • To run pretrained SVM to classify an image:

$ python -m sarclf -test 0 -clfimg <image_path>

  • For example, for image 2.tif in test_images folder, use:

$ python -m sarclf -test 0 -clfimg ./test_images/2.tif

  • To do any of the above steps with our modified MLPH: Add “-modified 1”

Example:

$ python -m sarclf -test 0 -clfimg ./test_images/2.tif -modified 1

Methodology

Following the research on MLPH, we derive a pattern matrix for each pixel based on a threshold value, use these matrices varying bin lengths to get local pattern sub-histograms, concatenated to give local pattern histogram. With multiple thresholds, the concatenation of local pattern histograms gives MLPH for each pixel.

MIT License Copyright (c) 2017 Avikalp Srivastava Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

简介

:satellite: Multi-Level Pattern Histogram for Synthetic-Aperture Radar (SAR) image classification into terrain classes. 展开 收起
MIT
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
1
https://gitee.com/jiaorzh/SAR.AI.git
git@gitee.com:jiaorzh/SAR.AI.git
jiaorzh
SAR.AI
SAR.AI
master

搜索帮助