Search
Code Directory
 ASP
 ASP.NET
 C/C++
 CFML
 CGI/PERL
 Delphi
 Development
 Flash
 HTML
 Java
 JavaScript
 Pascal
 PHP
 Python
 SQL
 Tools
 Visual Basic & VB.NET
 XML
New Code
Vue Injector 3.3
Spectrum Analyzer pro Live 2019
Devart Excel Add-in for HubSpot 2.1
RentALLScript - Airbnb clone 2.2
SuiteCRM Theme Customization 7.11.6
iScripts NetMenus 3.1
iScripts EasyIndex 2.2
iScripts EasySnaps 2.0
Australia MyPost shipping For Magento 2 1.0.0
Australia Post eParcel For Magento 1.1.1
Source Control for SQL Server 2.0
Answers phpSoftPro 3.12
Exlcart 2.0
School College ERP 1.3.2
White-label Grocery Delivery App Solution 2.0
Top Code
iScripts EasySnaps 1
iScripts NetMenus 2.0
iScripts EasyIndex 1
ATN Site Builder 3.0
phpEnter 5.1.
IcrediBB Bulletin Board System 1.0
PHP MLM Software 2.0.1
GnuWin64 64
Deals and Discounts Website Script 1.0.2
Azizi search engine script PHP 4.1.10
Single Leg MLM 1.2.1
Eclipse Metrics plugin continued 1.3.8.20100730.001
Circle Fit (Taubin method) 1.0
Exlcart 2.0
OpenCV Delphi wrapper 1.0
Top Rated
phpEnter 5.1.
Quick Maps For Dynamics CRM 3.1
Single Leg MLM 1.2.1
Azizi search engine script PHP 4.1.10
Paste phpSoftPro 1.4.1
Extreme Injector 3.7
Deals and Discounts Website Script 1.0.2
Solid File System OS edition 5.1
Classified Ad Lister 1.0
Aglowsoft SQL Query Tools 8.2
Invoice Manager by PHPJabbers 3.0
ICPennyBid Penny Auction Script 4.0
PHP Review Script 1.0
ATN Resume Finder 2.0
ATN Site Builder 3.0
Save and load data as multi-frame TIFF format 1.0
File ID: 84548






Save and load data as multi-frame TIFF format 1.0
Download Save and load data as multi-frame TIFF format 1.0http://www.mathworks.comReport Error Link
License: Shareware
File Size: 10.0 KB
Downloads: 9
Submit Rating:
Save and load data as multi-frame TIFF format 1.0 Description
Description: You can easily save and load a variety types of data as multi-frame TIFF format by using this.
Supported data types : uint8, uint16, uint32, int8, int16, int32, single

It does not support 'double' type and complex number.

Multi-frame RGB color image and lossless compression is supported.

Examples :

[X,Y,Z] = peaks(100);
Z_index = uint8((Z - min(Z(:))) * (255 / (max(Z(:)) - min(Z(:)))));

% 8-bit, grayscale image
saveastiff(uint8(Z_index), 'Z_uint8.tif', 1);

% 8-bit, grayscale image (using default parameter)
saveastiff(uint8(Z_index), 'Z_uint8.tif');

% Lossless compression
% Compression. 1 : Uncompressed, 5 : lossless LZW, 8 : lossless Adobe-style
saveastiff(uint8(Z_index), 'Z_uint8_LZW.tif', 1, 5);

% Overwrite with no question (default is 0 : ask question)
saveastiff(uint8(Z_index), 'Z_uint8_LZW.tif', 1, 5, 1);

% All Messages are skipped. (default is 0 : display all message)
saveastiff(uint8(Z_index), 'Z_uint8_LZW.tif', 1, 5, 1, 1);

% 16-bit, grayscale image, no compression, no quesion, no message
saveastiff(uint16(Z_index), 'Z_uint16.tif', 1, 1, 1, 1);

% 32-bit single, grayscale image
saveastiff(Z, 'Z_single.tif', 1, 1, 1, 1);

% Generate a RGB color image from the original gray scale image.
Z_color = uint8(ind2rgb(Z_index, hsv(256)*256));

% RGB color image
saveastiff(Z_color, 'Z_rgb.tif', 3, 1, 1, 1);

% Save each R, G and B chanels of the color image, separately.
saveastiff(Z_color, 'Z_rgb_channel.tif', 1, 1, 1, 1);

% Generate a multi-frame RGB color image.
Z_color_multiframe = reshape([Z_color(:)*0.2 Z_color(:)*0.6 Z_color(:)], 100, 100, 3, 3);

% Save the multi-frame RGB color image
saveastiff(Z_color_multiframe, 'Z_rgb_multiframe.tif', 3, 1, 1, 1);

% Add white noise to the RGB color image
Z_color_noisy = uint8(single(Z_color) + rand(100, 100, 3).*50);

% Save the noise-added RGB color image
saveastiff(Z_color_noisy, 'Z_rgb_noisy.tif', 3, 1, 1, 1);

% 32-bit single, 50x50x50 volume data
saveastiff(single(rand(50, 50, 50)), 'volume_50x50x50.tif', 1, 1, 1, 1);

License: Shareware

Related: Scale, original, Generate, Color, uint ind rgbz index, rgbtif, saveastiffz color, Hsv, singletif, saveastiffz

O/S:BSD, Linux, Solaris, Mac OS X

File Size: 10.0 KB

Downloads: 9



More Similar Code

Do you ever curse Java for making it so ridiculously difficult just to save and load data?
Do you ever say something like the following:
"All I want to do is save the user's data! I don't want to deal with your BufferedWriters and HashMapThingies and stuff!"
...all in a remarkably incensed tone?

Well, DON'T! There's a solution!
It's a PIECE O' CAKE!
Just use this handy dandy...



Extends the standard WordPress search to include data from posts, pages, comments, and meta-data, as well as the full content of data inserted by plugins. This last feature makes it unique amongst search plugins. For example, you may have a plugin...



A script to export elgg user, blog and comment data as a Wordpress eXtended RSS file for easy migration to wordpress or buddypress installation.



BUILDAIX is a set of scripts that largely automate compiling and packaging software as AIX LPP (installp format).

The single command "buildaix" orchestrates the configure, make, and mkinstallp commands needed to create an...



XSDB XML is to DATA as HTML is to DOCUMENT. Publish and combine data as easily as HTML format and web browsers publish and view documents. Implementations in Python, javascript, java, C#/.NET.



X360 Image to Multi-page Tiff Converter ActiveX Control helps application developers to converter the most common image formats include BMP, GIF, JPEG, PNG, WMF, TIFF to Multi-page Tiff Image File. It helps programmer to view and create multi-page...



X360 Image to Multi-page Tiff Converter ActiveX Control helps application developers to converter the most common image formats include BMP, GIF, JPEG, PNG, WMF, TIFF to Multi-page Tiff Image File. It helps programmer to view and create multi-page...



X360 Multi-page Tiff Viewer ActiveX Control helps application developers and programmers create applications with multi-page TIFF images viewing capabilities. Also, it helps you to get the embed TIFF tag from the images. It helps programmer to...



MSCBlob (Binary Large Object) is an auxiliary component for data blocks storing and transmitting.

It could contain a raw data and represent it as a binary or string.

There are 3 alternative string representations: as-is,...



X360 Multi-page Tiff Viewer ActiveX Control helps application developers and programmers create applications with multi-page TIFF images viewing capabilities. Also, it helps you to get the embed TIFF tag from the images. It helps programmer to...

User Review for Save and load data as multi-frame TIFF format
- required fields
     

Please enter text on the image