Documentation

This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

matlab.io.fits.setTileDim

Set tile dimensions

Syntax

fits.setTileDim(fptr,tiledims)

Description

fits.setTileDim(fptr,tiledims) specifies the size of the image compression tiles to be used when creating a compressed image.

This function corresponds to the fits_set_tile_dim function in the CFITSIO library C API.

Examples

import matlab.io.*
fptr = fits.createFile('myfile.fits');
fits.setCompressionType(fptr,'RICE_1');
fits.setTileDim(fptr,[64 128]);
fits.createImg(fptr,'byte_img',[256 512]);
data = ones(256,512,'uint8');
fits.writeImg(fptr,data);
fits.closeFile(fptr);
fitsdisp('myfile.fits','mode','full');
Was this topic helpful?