SC - powerful image rendering

Useful tool for rendering and outputting information rich images
17.9K Downloads
Updated 23 Jun 2020

SC is a useful function for displaying rich image data, of use to anyone wishing to visualize and save 2D data in ways beyond that which MATLAB built-in functions allow.
This function can be used in place of IMAGE, IMAGESC and IMSHOW, but does so much more. It is fast and displays images as they should be - correct aspect ratio, integer magnification, no axes. In addition, it can return the image as an output variable - useful for saving to disk, texture mapping surfaces, and post-rendering manipulation such as overlaying/combining two or more images.
All the MATLAB built-in colormaps are implemented, but without MATLAB's nasty discretization artifacts. Plus, there are many new colormaps which are helpful for viewing more complex data, such as optic flow, likelihoods over images, difference images, segmentations, stereo image pairs (as anaglyphs) and edge-maps with orientation. It also accepts user defined linear and non-linear colormaps.
SC comes with a complete demo, to help you get the most out of it. It doesn't require that you have any toolboxes, either.

SC makes heavy use of two of my other file exchange packages, IMDISP (id 22387) and REAL2RGB (id 23342), which are both included in this package, but are very useful in their own rights too.

Please send queries or bug reports direct to me using the "Contact Author" link on my Author page.

Cite As

Oliver Woodford (2024). SC - powerful image rendering (https://github.com/ojwoodford/sc), GitHub. Retrieved .

MATLAB Release Compatibility
Created with R14SP1
Compatible with any release
Platform Compatibility
Windows macOS Linux
Acknowledgements

Inspired by: imdisp, real2rgb & colormaps

Inspired: Zerocolor

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Versions that use the GitHub default branch cannot be downloaded

Version Published Release Notes
1.10.0.0

Imdisp now supports movies! Try:
imdisp(imstream('xylophone.mp4'), 'Size', 1)

1.8.0.0

Switch to GitHub repository

1.7.0.0

Added disparity, disco and whed colormaps, and updated imsc to behave more like imagesc.

1.6.0.0

Applied update to real2rgb

1.5.0.0

Added IMSC wrapper function for SC, which replicates display behaviour of IMAGESC.

1.4.0.0

Overhaul of the function, making it a wrapper for real2rgb and imdisp, with the more complex colormaps added in (including some new ones).

1.3.0.0

Allow axis labels and titles, using fix suggested by C. Chaya.

1.2.0.0

Fixed typo in the description!

1.1.0.0

Added ability for users to define linear and non-linear colormaps. Added ability to combine images within SC. Removed ability to display multiple images, as it isn't key functionality.

1.0.0.0

Saves index of multi-image view on a figure-by-figure basis

To view or report issues in this GitHub add-on, visit the GitHub Repository.
To view or report issues in this GitHub add-on, visit the GitHub Repository.