Text to bitmap conversion

Name

dat2bmp - Text to bitmap conversion

Synopsis

dat2bmp INPUT OUTPUT [options]

Description

A utility to convert a table of numbers (expressed as text) into a 2D colour-mapped bitmap.

The following options are supported:

-b Treat the INPUT file as a binary matrix (as saved by the matrix_file.h functions)

-f First line of file will contain [columns] [rows] [low] [high]

-i Swap x/y axis, so first element is in bottom-left corner

-log Use log scale

-s scale.bmp Use file for the colour scale

-z n The size, in pixels, each data point should be.

Remarks:
Implemented by dat2bmp.cpp

Example

The test.txt file can be converted into a bitmap:

dat2bmp test.txt expected.bmp -s scale.bmp


Copyright ©1996-2006 Steven Blackburn - About MaART - MaART on SourceForge