RGB to Black and White
Version 1.0.0.0 (81.9 KB) by
Anthony Gabrielson
Converts RGB images to black and white images
This code converts an RGB image to a black and white image in C with MEX. I this together for a school project and I couldn't find any good examples of MEX with image processing. One note the code is currently hard coded to handle only UINT8, however it should be trivial to convert that data type. Enjoy.
Cite As
Anthony Gabrielson (2024). RGB to Black and White (https://www.mathworks.com/matlabcentral/fileexchange/9107-rgb-to-black-and-white), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Created with
R14SP3
Compatible with any release
Platform Compatibility
Windows macOS LinuxCategories
- Image Processing and Computer Vision > Image Processing Toolbox > Import, Export, and Conversion > Image Type Conversion >
Find more on Image Type Conversion in Help Center and MATLAB Answers
Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
Version | Published | Release Notes | |
---|---|---|---|
1.0.0.0 | Added a function to convert from greyscale to black & white; its optional. |