본문 바로가기

Medical Physics32

FreeSurfer 셋업 설치를 마치고 이제 셋업을 할 시간(https://surfer.nmr.mgh.harvard.edu/fswiki//FS7_mac). 오랜만에 xclock 을 보니 반갑네. xclock 실행하고 XQuartz 버전을 확인해보니 2.8.1, 업데이트는 과감하게 생략. 셋업 안내 링크 밑부분에 보면 패키지 사용해서 설치할 때, 보안 설정 관련해서 필요한 추가 작업들도 안내가 되어있다. 참고로 패키지 설치 아니고 tarball 설치할 때는 관리자 권한(sudo privileges) 없이 사용자 홈디렉토리에 설치할 지 관리자 권한 사용해서 시스템 디렉토리(/Applications)에 설치할 지 선택할 수도 있다. bash 또는 Bourne shell 을 사용하라고 하니 MacOS 기본으로 설정해놓은 zsh 대신에 .. 2024. 2. 15.
FreeSurfer 설치 근래에 Brain MR 영상 데이터 관련 요청을 받게되면서, 이런 게 있다는 사실만 알고 지내던 FreeSurfer 를 직접 설치 및 사용할 계기가 생겨버렸다. 참고로 FreeSurfer 는 뇌신경영상 데이터의 분석과 시각화를 위한 소프트웨어 패키지이고 Laboratory for Computational Neuroimaging at the Athinoula A. Martinos Center for Biomedical Imaging 에서 개발되었다고 한다. 요즘은 인공지능 관련 연구들을 하는 사람들이 더 활발하게 사용하고 있는 것 같기도 하고. 설치를 위해 MacOS 환경에서 현재 가장 최신 stable release 인 7.4.1 버전으로 패키지 파일을 다운로드 받았다(https://surfer.nmr... 2024. 2. 15.
아이맥프로에 Segment Anything 설치해보기 현재 사용 중인 아이맥프로에는 macOS version 12.6.5 Monterey 가 설치되어있고 터미널을 열어서 확인해보니 Python 3.9.13 이 설치되어있다. (base) ➜ ~ python --version Python 3.9.13 Anaconda navigator 에서 VS Code 를 실행하고 확인해보니 base environment 에는 Python 3.11.6 이 설치되어있다. 먼저 SAM 이라는 conda environment 를 만들고 활성화 시켜본다. conda create --name SAM python=3.9 conda activate SAM 이제 pytorch 를 설치해본다. conda install pytorch torchvision cpuonly -c pytorch "U.. 2024. 1. 9.
TOPAS Time Features TOPAS User guide 에서 발췌 A Time Feature is a set of parameters that ultimately describes the change of a time feature Value. You provide parameters that define the time function, such as a linear change over time. TOPAS automatically creates a Value parameter for this function (a parameter you don’t define). TOPAS continually updates this Value parameter to the appropriate value for a given time. .. 2023. 12. 6.
TOPAS user extension 사용하기 README.txt 에서 해당 부분만 발췌하면 아래와 같다: Place your TOPAS extension code into a directory that is NOT inside of the topas directory 5c) Build your New TOPAS: Place your TOPAS extension code into a directory that is NOT inside of the topas directory. macOS: we suggest /Applications/topas_extensions Linux: we suggest ~/topas_extensions Newest Macs with the M1 chip: cd /Applications/topas unzip Geant4Head.. 2023. 11. 29.
Streamlit 시작하기 - Day 10 Day 10 은 selectbox 에 대한 소개. 데모는 아래 링크에서 확인 가능! https://dataprofessor-st-selectbox-streamlit-app-ridx2e.streamlit.app/ A faster way to build and share data apps st.selectbox allows the display of a select widget. dataprofessor-st-selectbox-streamlit-app-ridx2e.streamlit.app 2023. 4. 16.
Streamlit 시작하기 - Day 9 Day 9 챌린지는 Line chart. pandas, numpy 를 이용해서 생성한 테이블을 st.line_chart 명령어를 이용해서 아래와 같이 예쁘게 Line chart 로 만들어 줄 수 있다! 2023. 3. 16.