/dtobj

Detect object from fits

Primary LanguageCGNU General Public License v2.0GPL-2.0

목적

FITS 파일에서 Chopper에 의해 구간별로 쪼개진 직선의 검출.

(참고 : FITS == http://fits.gsfc.nasa.gov/)

빌드

  1. Xcode(command line tool포함) 설치 (Mac OS)

https://developer.apple.com/xcode/ 에서 View in Mac App Store 클릭

설치가 끝난 후에 Xcode 실행하고 메뉴에서 Preferences -> Downloads -> Command Line Tools -> install

스크린샷

  1. brew and opencv, cfitsio 설치 (Mac OS)

LaunchPad 에서 유틸리티/터미널 실행한 후

# brew install
/usr/bin/ruby -e "$(/usr/bin/curl -fsSL https://raw.github.com/mxcl/homebrew/master/Library/Contributions/install_homebrew.rb)"
	
# install opencv
brew update
brew install opencv cfitsio

2-1. opencv 설치 (Linux : Debian 6)

리눅스(데비안)에서 opencv2.1 을 설치하려면, 다음과 같이 하면되는데,

sudo apt-get install libcv-dev libhighgui-dev  libcvaux-dev libcfitsio3-dev

opencv 2.1에서는 간혹 메모리 오류가 발생하기 때문에...

( OpenCV on DebianOpenCV Wiki 참고해서 컴파일하는 것이 안정적이다.

  1. 소스 가져오기

# 단순 clone
git clone http://github.com/jinto/dtobj

# 수정권한이 필요한 경우 (먼저 관리자(jinto)에 요청해서, collaborator에 등록되어야함)
git clone git@github.com:jinto/dtobj

# 소스를 받아온 상태에서 최신 버전을 또 가져오려면
git pull

# github에서 fork한후 merge 요청하는 방식도 가능

(git 설명서 : http://rogerdudler.github.com/git-guide/index.ko.html)

  1. 컴파일

# make만 실행하면 됨
# 실행할 때는  옵션으로 fits파일을 지정해야함, fits 파일은 samples폴더에 있어야함.
./f2j 20120308_edit_00.fit 

Todo