Download Shareware and Freeware Software for Windows, Linux, Macintosh, PDA

line Home  |  About Us  |  Link To Us  |  FAQ  |  Contact

Serving Software Downloads in 976 Categories, Downloaded 29.859.899 Times

mat2im 1.0

  Date Added: June 24, 2013  |  Visits: 242

mat2im

Report Broken Link
Printer Friendly Version


Product Homepage
Download (18 downloads)



This code snippet converts a 2D matrix to a 3D matrix where the values in the 3rd dimension correspond to pixel intensity in the red, green, and blue domains. This is the format used by many functions in the Image Processing Toolbox (which is not required for this function to run).The code works by mapping the values of matrix "mat" onto the rows of colormap "cmap" using a fast vectorised operation. function im=mat2im(mat,cmap,maxVal) PURPOSE Uses vectorized code to convert matrix "mat" to an m-by-n-by-3 image matrix which can be handled by the Mathworks image-processing functions. The the image is created using a specified color-map and, optionally, a specified maximum value. Note that it discards negative values! INPUTS mat - an m-by-n matrix cmap - an m-by-3 color-map matrix. e.g. hot(100). If the colormap has few rows (e.g. less than 20 or so) then the image will appear contour-like. limits - by default the image is normalised to it's max and min values so as to use the full dynamic range of the colormap. Alternatively, it may be normalised to between limits(1) and limits(2). Nan values in limits are ignored. So to clip the max alone you would do, for example, [nan, 2] OUTPUTS im - an m-by-n-by-3 image matrix Example 1 - combine multiple color maps on one figure clf, colormap jet, r=rand(40); subplot(1,3,1),imagesc(r), axis equal off , title('jet') subplot(1,3,2),imshow(mat2im(r,hot(100))) , title('hot') subplot(1,3,3),imshow(mat2im(r,summer(100))), title('summer') colormap winter %changes colormap in only the first panel Example 2 - clipping p=peaks(128); J=jet(100); subplot(2,2,1), imshow(mat2im(p,J)); title('Unclipped') subplot(2,2,2), imshow(mat2im(p,J,[0,nan])); title('Remove pixels 0') subplot(2,2,4), imshow(mat2im(p,J,[-1,3])); title('Plot narrow pixel range') Rob Campbell - April 2009 See Also: ind2rgb

Requirements: No special requirements
Platforms: Matlab
Keyword: Color Drand Equal Figure Multiple Subplot Imagescr Title Hot Title Jet Title Summer Winter
Users rating: 0/10

License: Shareware Size: 10 KB
USER REVIEWS
More Reviews or Write Review


MAT2IM RELATED
Development Editors  -  Multi Color Circular Noise Loop 1
Multi Color Circular Noise Loop - useful as a background, presentation, intro, transition, title, logo, banner, site, etc. 5 color variation : (multicolored) (purple+blue) (white+blue) (yellow+blue) (yellow+red) Included files FLV (704x576 &...
100 KB  
HTML Utilities  -  Alt&Title 1.1.1.848
As a web developer you already know that certain HTML tags should contain alt and title attributes. Not only do they add visiual cues and improve accessibility, they also help your Web pages adhere to standards published by the World Wide Web...
1.54 MB  
Networking  -  SEO Title Tag 2.3.3
Title tags are arguably the most important of the on-page factors for search engine optimization ("SEO"). It blows my mind how post titles are also used as title tags by WordPress, considering that post titles should be catchy, pithy, and...
10 KB  
Utilities  -  Housing Discrimination Complaint Application 1.0.3
This app allows you to submit a claim of housing discrimination for review by Housing and Urban Development's Office of Fair Housing and Equal Opportunity. Your fair housing rights are protected under Title VIII of the Civil Rights Act of 1968...
9.9 MB  
Photo & Video  -  PaintSnap 0.0.0.0
PaintSnap makes paint selection easy. Take a picture and PaintSnap will automatically generate a color palette. Select from multiple manufacturers offerings to find the paint you like the most! Requirements: Windows Phone 8.1, Windows Phone 8,...
2 MB  
Desktop Utilities  -  AeroBar
AeroBar shows the title in Explorer's title bars when Aero is Active in Vista. Installation - Place the downloaded file "AeroBar.exe" in your StartUp folder and reboot. Uninstallation - Remove the file "AeroBar.exe" from your StartUp folder and...
146 KB  
Modules  -  Node As Block 1.0
By default these blocks display the node title as the block title and the node teaser as the body. The goal of this module is to break down conceptual barriers between nodes and blocks.By overriding the theme('nodeasblock', $node) functions the...
 
Utilities  -  GTS Closing Cost Estimate 1.3
This application is designed to help provide a rough estimate of closing costs that you will incur when doing a closing or title insurance with Guaranty Title Services, Inc. It calculates the estimated amount of taxes you will owe as well as fees...
1.7 MB  
Social Networking  -  143Style.Talk 1.0.0.1
See the latest fashion trends ... Try on celebrity hairstyles, hair color, eye makeup and cosmetics.. See pictures of hot stars .. Be social, talk and have a great time! Requirements: Windows Phone 8.1, Windows Phone 8
3 MB  
Communication  -  hilbert2 1.0
HILBERT2 Extract instantaneous envelope and frequency from a bandlimited signal via Hilbert transform. [ENV FREQ] = HILBERT2(X,FS), for vectors X, returns estimates of the instantaneous envelope and frequency. X is assumed to be a band-limited...
10 KB  
NEW DOWNLOADS IN SCRIPTS, DEVELOPMENT TOOLS
Scripts  -  Freelancer Script 5.05
Main Features: 100% Secured. Email Support (3 Years). FREE Updates (3 Years). Post projects. Featured projects. Private projects. Sealed projects. Edit/delete projects. Select freelancers....
5.49 MB  
Scripts  -  B2B Script 4.20
Main Features: 100% Secured. Email Support (3 Years). FREE Updates (3 Years). Sign-up Account (Registration of account). Lead generation tools (for the sellers). Email verification to...
5.49 MB  
Scripts  -  B2C Script 5.06
Main Features: 100% Secured. Email Support (3 Years). FREE Updates (3 Years). The script comes with totally editable site colors, icons and graphics Multilevel categories allows extensive browsing Admin can change Category ordering or...
5.49 MB  
Scripts  -  Social Networking Script 2.86
Main Features: 100% Secured. Email Support (3 Years). FREE Updates (3 Years). Registration with name, email, password, date of birth etc. User can add multiple school, college, university with start...
5.49 MB  
Scripts  -  Business Networking Script 8.04
Main Features: 100% Secured. Email Support (3 Years). FREE Updates (3 Years). Ajax based interface. Profile creation. Different types of profile. Profile for jobseekers, employers and employed...
5.49 MB  
Development Tools  -  VMP Viewer 1.0
This is a very rudimentary tool to visualize the VMP files generated by BrainVoyager. Useful to share files with people who do not have BV.
10 KB  
Development Tools  -  Sending reports and timestamped file by emailing 1.0
main executing reference usage:[1] usage_send_mail.mIllustrates email sending with multiple separate files or single timestamped tar file. Attachment failure is properly handled, with continuation of report emailing without the attachment.[2]...
768 KB  
Development Tools  -  IrisMVC 2.0 rc1
IrisMVC is an OOP PHP framework that developers can use as a strong and secure foundation to build on various web applications following the Model-View-Controller (MVC) pattern. It provides the basic functionality developers need, without...
51.2 KB  
Development Tools  -  7-Zip for Script 4.42
7-Zip is a file archiver with a high compression ratio.Features:- High compression ratio in new 7z format with LZMA compression- Supported formats:- Packing / unpacking: 7z, ZIP, GZIP, BZIP2 and TAR- Unpacking only: RAR, CAB, ISO, ARJ, LZH, CHM,...
624.64 KB  
Development Tools  -  Barnardextest 1.0
This file, as the Fisher's exact test, performs the exact probability test for a table of frequency data cross-classified according to two categorical variables, each of which has two levels or subcategories (2x2). It is a non-parametric...
10 KB