GithubHelp home page GithubHelp logo

moosmann / matlab Goto Github PK

View Code? Open in Web Editor NEW
9.0 4.0 7.0 16.27 MB

Data reconstruction and analysis tools for tomography data acquired at the P05 Imaging Beamline (IBL) and the P07 High-Energy Material Science (HEMS) beamline at PETRA III at DESY, both operated by Helmholtz-Zentrum Hereon.

License: GNU General Public License v2.0

MATLAB 98.89% Cuda 0.76% Objective-C 0.02% Mercury 0.01% M 0.01% C++ 0.27% Shell 0.04% Mathematica 0.02%
tomography imaging x-ray computed-tomography reconstruction reconstruction-algorithm phase-retrieval image-processing preprocessing

matlab's Introduction

matlab

MATLAB scripts and functions

Installation of reconstruction routine for micro-tomography data acquired at the P05 imaging beamline (IBL) or P07 high energy material science beamline (HEMS) at PETRA III at DESY, both operated by Helmholtz-Zentrum Hereon.

  1. Log in to a GPU node on the MAXWELL cluster at DESY, e.g. max-hzgg001 to max-hzgg006, max-fsg, etc. The nodes max-nova, max-display and max-display3 are meant for remote access and visualization, but not for computationally expensive tasks. However, very small scans or single slice can be reconstructed on these nodes.

  2. Download the latest MATLAB files from GitHub:

    git clone https://github.com/moosmann/matlab.git

    OR

    Update to latest version: Fetch latest version of the 'master' branch from the remote repository 'origin' and reset/overwrite all local changes. New files that were created locally and which do not exist in the latest branch are not deleted.

    git fetch origin master & git reset --hard origin/master

    Before updating you can back-up local files by branching if necessary:

    git add --all git commit -m "COMMIT MESSAGE" git branch NAME_OF_BRANCH

    To check which files were modified and which new (untracked files):

    git status

How to start the tomographic reconstruction routine:

  1. Change directory to the 'matlab' folder:

    cd matlab

  2. Start MATLAB using the following script:

    ./startmatlab.sh

    The script automatically sets environment variables in order to use a local installation of the ASTRA toolbox, starts MATLAB, and sets the MATLAB search paths. (Note that this will overwrite local MATLAB user settings, for details see 'startup.m'.)

    (If 'startmatlab.sh' is not executable: chmod +x startmatlab.sh)

  3. If not already open, open 'p05_reco' (also for P07 scans) in MATLAB located at './matlab/experiments/p05/' e.g. enter 'edit p05_reco' in MATLAB's command line.

  4. Edit/check the reconstruction parameters, at least you have to modify 'par.scan_path'.

  5. Start the reconstruction by one of the following:

    • Type 'p05_reco' in MATLAB's command line
    • Click 'RUN' button in editor tab
    • Type 'F5' key when focus is in the 'p05_reco.m' file -

The reconstruction can be automatically looped over all data sets acquired during a beamtime and/or over different reconstruction parameters. How to set up a loop script to reconstruct several data sets: help p05_create_reco_loop

matlab's People

Contributors

moosmann avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

matlab's Issues

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.