View License

Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.

» Watch video

Highlights from

Be the first to rate this file! 7 Downloads (last 30 days) File Size: 22.6 KB File ID: #38992 Version: 1.2
image thumbnail



Divakar Roy (view profile)


12 Nov 2012 (Updated )

IMPIXEL_FIGTOOLS Pixel color values with figure tools on.

| Watch this File

File Information

IMPIXEL_FIGTOOLS works very much like the MATLAB's in-built function IMPIXEL and lets you use the important figure toolbar features like Zoom In, Zoom Out, Pan, Rotate and Data Cursor, which are not available with IMPXEL. As of now, IMPIXEL_FIGTOOLS only supports functionality of inputting one input, which has to be the image data.
In the syntax below, IMPIXEL_FIGTOOLS displays the input image and waits for you to specify the pixels with the mouse:
Here P is the matrix of pixel values and I is the image data.
When you finish selecting pixels, IMPIXEL_FIGTOOLS returns an M-by-3 matrix of RGB values in the supplied output argument. If you do not supply an output argument, IMPIXEL_FIGTOOLS returns the matrix in ANS.
Class Support
The input image can be uint8. Though not tested, I would assume it to work well with these formats too - uint16, int16, double, single and logical.
The only output is double.
RGB = imread('peppers.png');
pixels = impixel_figtools(RGB)

Feedback / Bugs / How-this-helped / How-this-sucked / How-this-could_be_improved / Anything about it are MOST welcome.


Ginput On Gui (Keeping Toolbar Features On) & Use Of Custom Pointers inspired this file.

Required Products Image Processing Toolbox
MATLAB release MATLAB 7.13 (R2011b)
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
13 Nov 2012 1.1

Added acknowledgment for the code that inspired this one.

14 Nov 2012 1.2

Added acknowledgment for the code that inspired this one, which didn't go through earlier.

Contact us