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
Excel Add-in for DB2 1.7
wolfSSL 4.0.0
EntityDAC Express 2.2
SecureBridge 9.1
C# HTML to PDF 2019.6.5
PHP Ecommerce Script 3.6
Devart SSIS Data Flow Components 1.11
dbForge Data Compare for PostgreSQL 3.2.15
OrgChart JS 4.9.7
iScripts CyberMatch 1.3.3
AnyGantt JS Gantt Charts 8.7.0
Database Workbench Pro 5.6.8
SentiMask SDK Trial 2.0.193121
dbForge Studio for SQL Server 5.8
ODBC Driver for ASE 2.1.2
Top Code
iScripts CyberMatch 1.3
dbForge Data Compare for PostgreSQL 2.0
SecureBridge 8.0
dbForge Studio for SQL Server 5.5
Database Workbench Pro 5.6.8
PHP Ecommerce Script 1.0.4
ATN Site Builder 3.0
Availability Booking Calendar PHP 1.0
ATN Resume Finder 2.0
Excel Add-in for DB2 1.1
PHP Review Script 1.0
ICPennyBid Penny Auction Script 4.0
EntityDAC Express 2.2
Hide Your Source Code
Compiling Components in Visual Basic for ASP
Top Rated
VisualNEO Web 2018.12.15
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
ADO.NET Provider for ExactTarget 1.0
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
Availability Booking Calendar PHP 1.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: 8
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: 8



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