Code Monkey home page Code Monkey logo

hyper_to_rgb's Introduction

1 ハイパースペクトル画像の単一のチャネルを表示したり,RGB画像にレンダリングできるアプリケーションです.プログラムを実行したら400 nm ~ 410 nmのチャネルを表示しています.単一のチャンネルを表示することで,例えばチェッカーボードの黒色が全ての光の波長を反射しないことが確認できます.他にも赤色と知覚される620 nm〜750 nmの範囲でチェッカーボードの赤色の部分が光を反射することがわかります.(黒色なら反射せず白色なら反射している.)また左には光源の分光分布を表示しています.

レンダリングに使用する光源としてCIEが決めたD65標準光源,標準光源Aと市販されている光源を二つ利用することができます.

使い方 tkinterをインストールします.

brew install tcl-tk
cd hyper_to_rgb

ハイパースペクトル画像をdata/の下にdata.tiffという名前で保存します.

curl -O http://colorimaginglab.ugr.es/pages/data/hyperspectral/scene9_sp/! ./data/data.tiff

実行方法

python3 main.py

レンダリング方法

ハイパースペクトル画像からRGBへのレンダリング方法や現在抱いている疑問はPDFに書きました.

todo

光源の分光分布の画像が少し大きいように感じます. また,アプリを全画面表示できないのも使いにくいため,改良したいと思います.

リンク

スペインの大学で公開されているハイパースペクトル画像を利用します[1]. 光源A[2]と光源B[3]の値は市販されている光源の分光分布を配布しているサイトから入手しました. [1]http://colorimaginglab.ugr.es/pages/Data#__doku_ishihara_spectral_database. [2]http://galileo.graphycs.cegepsherbrooke.qc.ca/app/en/lamps/2602 [3]http://galileo.graphycs.cegepsherbrooke.qc.ca/app/en/lamps/2570

hyper_to_rgb's People

Contributors

hideo130 avatar

Stargazers

 avatar PySimpleGUI avatar Thomas Mansencal avatar

Watchers

 avatar

hyper_to_rgb's Issues

Screenshot, install instructions

Hi!

Screenshot

Thank you very much for including a screenshot in your readme! This is SO helpful to visitors. It grabs people's attention because SO few Python programs have a GUI. You worked hard to make a GUI so why not show it to people? Nice work.

Install

You may want to add that PySimpleGUI needs to be installed as well in your installation instructions? Actually, now that I see your requirements.txt, there are a good number of packages that have to be installed.

colour==0.1.5
colour-science==0.3.15
japanize-matplotlib==1.0.5
matplotlib==3.2.1
numpy==1.18.1
Pillow==7.0.0
PySimpleGUI==4.16.0
scikit-image==0.16.2

I would recommend upgrading to the latest PySimpleGUI (4.19.0) if you can.

Of course none of these are very important things and you can ignore them all. I mostly wanted to say thanks for using PySimpleGUI and for posting a screenshot. It's a nice looking app you've made!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.