cm

Refactored code to extract and render slices from images, along with optional colorbar, in MATLAB

https://github.com/bfranx/cm

Science Score: 18.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
    Found CITATION.cff file
  • codemeta.json file
  • .zenodo.json file
  • DOI references
  • Academic publication links
  • Academic email domains
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (7.0%) to scientific vocabulary
Last synced: 7 months ago · JSON representation ·

Repository

Refactored code to extract and render slices from images, along with optional colorbar, in MATLAB

Basic Info
  • Host: GitHub
  • Owner: bfranx
  • License: mit
  • Language: MATLAB
  • Default Branch: master
  • Homepage:
  • Size: 1.04 MB
Statistics
  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • Open Issues: 0
  • Releases: 0
Created over 2 years ago · Last pushed over 2 years ago
Metadata Files
Readme License Citation

README.md

cm

Version 0.2.0

See usage example in example.m

REQUIREMENT

  • Matlab image processing toolbox

Description

cm (ColorMap) extracts a slice from an 3D matrix and renders it, returning graphical object handles of the image (fig) and the colorbar (cb) for easy editing and saving

Obligatory input:
  imin : matrix representing your image (currently 3D only!)
  pixdim : vector of length 3 denoting the pixel dimensions corresponding to the image
  direction : slice direction [ 0 - 2 ]
  slice : slice selection

Optional input:
  mask : mask (will crop out region if specified)
  limits : vector of length 2 that specifies intensity range (default: 100)
  sf : scaling factor   interp : interpolation method that accompanies scaling ('bilinear', 'bicubic' or 'nearest')   mycm : colormap of choice, should be three-column matrix of RGB triplets (see example.m)
  mycbopt : colorbar options, passed on to colorbar()

Output:
  fig : graphical object handle of the rendered slice
  cb : object handle for colorbar

See usage example in example.m

TODO

  • function not tested on 2D input
  • inputParser is nicely readable but slow, possibly replace with alternative

License

This project is licensed under the terms of the MIT License

Citation

Please cite this project as described here.

Owner

  • Login: bfranx
  • Kind: user

Citation (CITATION.md)

Please cite this project as follows:

Bart Franx (2023),  cm - version 0.1.0. url: github.com/bfranx/cm

GitHub Events

Total
Last Year