Code covered by the BSD License  

Highlights from
Plot to Bitmap

5.0

5.0 | 1 rating Rate this file 20 Downloads (last 30 days) File Size: 13.54 KB File ID: #23468
image thumbnail

Plot to Bitmap

by Dirk-Jan Kroon

 

29 Mar 2009 (Updated 24 Jan 2011)

Plot lines (and text) directly into a bitmap, including filled polygons.

| Watch this File

File Information
Description

"Plot to Bitmap" allows the user to directly plot lines, text and filled polygons into an image, thus without taking a screen-shot (getframe).

This function is also useful if you want to convert a few coordinates describing a region contour into a bitmap of the region.

Acknowledgements
This submission has inspired the following:
contest clock
Required Products Image Processing Toolbox
MATLAB release MATLAB 7.7 (R2008b)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (1)
17 Mar 2010 Peter Bone

Very good. This made it possible for me to create synthetic images to test an image processing algorithm.
Doesn't fill polygons right to the edge of the image. X and Y seem to be flipped in the bitmapplot function.

Please login to add a comment or rating.
Updates
31 Mar 2009

Add Font sizes, and fixed missing capital "Y"

03 Apr 2009

Fixed small gap bug, by rounding values of input coordinates

24 Jan 2011

Replace for-loop by arrayfun. Allow multiple marker-colors.

Tag Activity for this File
Tag Applied By Date/Time
bitmap Dirk-Jan Kroon 30 Mar 2009 14:18:28
image Dirk-Jan Kroon 30 Mar 2009 14:18:28
text Dirk-Jan Kroon 30 Mar 2009 14:18:28
lines Dirk-Jan Kroon 30 Mar 2009 14:18:28
plot Dirk-Jan Kroon 30 Mar 2009 14:18:28
line Dirk-Jan Kroon 30 Mar 2009 14:18:28
2d Dirk-Jan Kroon 30 Mar 2009 14:18:28
color Dirk-Jan Kroon 30 Mar 2009 14:18:28
markers Dirk-Jan Kroon 30 Mar 2009 14:18:28
filled polygon Dirk-Jan Kroon 30 Mar 2009 14:18:28
polygon Dirk-Jan Kroon 30 Mar 2009 14:18:28

Contact us at files@mathworks.com