File Exchange

image thumbnail


version (45.8 KB) by Steve Eddins
Convert image pixels to HTML table showing pixel colors and values


Updated 01 Sep 2016

View Version History

View License

im2html produces HTML text containing a table that displays the image pixel colors and values. When called with no output argument, im2html displays the HTML in the MATLAB Web Browser. When called with an output argument, im2html returns the HTML text as a string. This form can be useful when publishing a MATLAB file.
Requires Image Processing Toolbox.

Should run in R2009a or later.

Cite As

Steve Eddins (2021). im2html.m (, MATLAB Central File Exchange. Retrieved .

Comments and Ratings (6)

Steve Eddins

Paulo - Thanks for reporting this. That function is not needed for using this submission. It is a test file that uses an outdated unit test harness. I will update it when I get a chance.

Paulo Valente

Hi there!
A function named iniTestSuite seems to be missing.

Steve Eddins

giga, I haven't been able to reproduce the behavior you describe. If you can provide reproduction steps, that would be very helpful.


Dequeue implementation is buggy!

push back some elements; then pop some from front and then push again... at some point I noticed that elements inside the queue are becoming empty!


Akshay Gore

How to calculate
pixel with same gray value are labeled with same number,for each kernal in the image?

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

Community Treasure Hunt

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

Start Hunting!