|
|
(12 intermediate revisions by one user not shown) |
Line 1: |
Line 1: |
− | // this page is still under construction
| + | The goal of this project was to generate mipmaps and to provide readers for both 2D images and 3D volumes. In this project, we also defined file formats that best suited our needs for 2D videos and 3D volume rendering, and tried to make it efficient. |
− | // brief summary goes here...
| + | |
| | | |
− | ==2D mipmap generator== | + | ==Manuals== |
− | Generate mipmaps for 2D images.
| + | |
| | | |
− | ;SYNOPSIS:
| + | [[Mipmap Generator 2D Manual]] |
− | :./MipmapGen2D [-f format -s brickSize] imageFilename maxLevel
| + | |
− | :./MipmapGen2D [-f format -s brickSize] inputBatchFilename maxLevel [outputBatchFilename]
| + | |
| | | |
− | ;DESCRIPTION:
| + | [[Mipmap Generator 3D Manual]] |
− | :'''Generate mipmaps for an image:'''
| + | |
− | :Generate mipmaps for an image specified by imageFilename, from level 0 (the original image size) to the level specified by maxLevel. If the maxLevel is -1, MipmapGen2D generates all the mipmaps from the original image size to the biggest size smaller than the brickSize.
| + | |
| | | |
− | :'''Generate mipmaps for a set of images:'''
| + | ==Acknowledgment== |
− | :Generate mipmaps for a set of images listed in the inputBatchFilename, all from level 0 (the original image size) to the level specified by maxLevel.
| + | |
| | | |
− | :If outputBatchFilename is specified, MipmapGen2D assumes the image set is an animation, and generates a single text file which lists mipmaps for each frame and timestamps. If outputBatchFilename is not specified, it’s the same as a batch mipmaps generation. MipmapGen2D generates mipmaps and a text file for each image in the set, as if they are generated separately.
| + | Thanks Han and Jurgen for always being there when I needed help. |
− | | + | |
− | ;OPTIONS:
| + | |
− | :'''-f format'''
| + | |
− | ::Specify file format for the output mipmaps. Default is mix.
| + | |
− | ::sep: Save all pixels of a channel together, i.e. RRR…R, GGG…G, BBB…B
| + | |
− | ::mix: Save channels of one pixel together, i.e. RGB, RGB, RGB…RGB
| + | |
− | :'''-s brickSize'''
| + | |
− | ::Specify the brick size. Default is 128.
| + | |
− | | + | |
− | ;VERSION
| + | |
− | :Current version only supports TIFF image. The input TIFF image should be uncompressed. Only the data chunk specified by the first image file directory (IFD) will be processed.
| + | |
− | | + | |
− | ;FILE FORMAT
| + | |
− | :#Mipmaps
| + | |
− | :For each mipmap level of an image, we divide the output mipmap into fixed size bricks (Fig. 1), and save all the bricks of one mipmap level to one file.
| + | |
− | | + | |
− | :[[Image:MipmapGen2D fig1.jpg]]
| + | |
− | :Fig. 1
| + | |
The goal of this project was to generate mipmaps and to provide readers for both 2D images and 3D volumes. In this project, we also defined file formats that best suited our needs for 2D videos and 3D volume rendering, and tried to make it efficient.
Thanks Han and Jurgen for always being there when I needed help.