Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 8 Next »

Unknown macro: {alias}

Name

ima — Image handling

Syntax

ima map | mtp | rea | sto | sav | sel | rem | gsn | val | rgb | cvi | cvd | ins | sla | slc | pgr | der2 | qua | lst | ext | mag | view | del | grid | combine

Description

The ima command can read and store image files; display the image and manipulate images. A three component image has RGB values for each node. Some image options are only valid for one component grids.

Arguments

map [z zval] [noint]

mtp

rea file

sto tiff | bmp | ppm | png | jpg | jpeg | vtk | psc file

sav

gsn ik jk il jl

sel ir ic

rem pixel_number

val

rgb [rng r1 r2] [map]

cvi new_image_type_number

cvd new_data_type_number

Number code for image formats

0 = VTK_VOID
1 = VTK_BIT
2 = VTK_CHAR
3 = VTK_UNSIGNED_CHAR
4 = VTK_SHORT
5 = VTK_UNSIGNED_SHORT
6 = VTK_INT
7 = VTK_UNSIGNED_INT
8 = VTK_LONG
9 = VTK_UNSIGNED_LONG
10 = VTK_FLOAT
11 = VTK_DOUBLE

ins layer_number worspace_cubename

sla layer_number | top | bot | mid

slc x y | cur

pgr x | y | z | xy

der2

qua

lst

ext 0 | 1 | 2

mag

view

del

grid

combine image1 image2 image3

Examples

Ex.1: Image to grid

z                 ;# Erase screen
win demo          ;# Get demo window (450000 460000 6450000 6460000 1000 4000)
spe bgc whi       ;# Specify background color to white
mak ran 11        ;# Make 11 random points
grp 222 222       ;# Make grid of dimension 222 x 222
map               ;# Map the grid
ima sav           ;# Save image 
ima qua           ;# Quantize the image
ssc               ;# Scale data
d2                ;# Set screen in 2D mode
map               ;# Map the grid

The above example produces this image.


Image to grid example

See also

map - Map display , psc bmp , tma - Texture mapping

  • No labels