VIPMWRITE_CVIP
vipmwrite_cvip() - Writes image data to the VIPM file.
Contents
SYNTAX
[ opFlag, vipmInfo ] = vipmwrite_cvip(imageData, fileName, imageArgs, history)
Input Parameters include:
- imageData - Image array (real or complex format). The image can be of uint8,int16,int32,single or double class.
- filename - Character vector specifying the name of new VIPM file.
- imageArgs - Image information of original image or new image information you want to store.
imageArgs(1): Image Format ('tif'| default)
imageArgs(2): Color Format (for 2-D image, 'gray_scale' as default for 3-D image, 'rgb' as default)
imageArgs(3): compress format type ('none'| default)
imageArgs(4): Byte Ordering ('le'| default)
imageArgs(5): Image data type (class of imageData as default)
- history - History structure (Currently not available!)
Output Parameter includes:
- opFlag - Indicates the completion of vipm file write operation, 1 if success
- vipmInfo - Information structure of saved VIPM image file
DESCRIPTION
The function writes image data to the VIPM (visualization in image processing Matlab)file specified by the filename. If filename exists, the function overwrites the image file. The vipm file format is similar to the vip format in CVIPtools, which was created to handle any data types and formats(i.e. real or complex). In addition,a history structure is included in the defined format for custom and future use.
REFERENCE
1. Scott E Umbaugh. DIGITAL IMAGE PROCESSING AND ANALYSIS: Applications with MATLAB and CVIPtools, 3rd Edition.
EXAMPLE
% Read image I = imread('butterfly.tif'); % call function with default parameters vipmwrite_cvip(I,'test'); %a combination of user specified arguments and default arguments [Op, Info] = vipmwrite_cvip(I,'test1',{'tif','rgb'})
Op = 1 Info = filename: 'test1.vipm' vip_version: 'vipm' file_mod_date: 7.3709e+05 image_format: 4 color_format: 2 cvip_type: 0 no_of_bands: 3 no_of_cols: 512 no_of_rows: 512 byte_order: 'le' data_format: 0 cmpr_format: 0 history_info: 0 real_pixdata_offset: 42 imag_pixdata_offset: [] file_size: 786474
CREDITS
Author: Norsang Lama, April,2017
Copyright © 2017-2018 Scott
E Umbaugh
For updates visit CVIP Toolbox Website