Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Wiki Markup
{alias:ima}

Name

ima — Image handling

Syntax

...

Arguments

map [z zval] [noint]

Map the image. 
z zval - Map the image at zval position. 
noint - Map the image with no interpolation.

mtp

Map the image to Postscript. Will reproduce the bitmap for Postscript only.

rea file

Read image of various format from disk file. The command ima map will display the image.

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

Store the image into a disk file in tiff or bitmap (bmp) or ppm or jpeg or vtk or postscript format.

sav

Convert screen image to image dataset. Save it to disk or into the project.

gsn ik jk il jl

Select nodes in rows (ik il) and columns (jk jl) given by the index number. Lowest index is 0.

sel ir ic

Select every point number ir and ic in each x and y direction.

rem pixel_number

Removes any island that has less than pixel_number pixels.

val

Convert an image to a grid after a value formula.

rgb [rng r1 r2] [map]

Convert a grid to an rgb image. 
rng r1 r2 - Convert and using range r1 r2. 
map - Convert a grid and use a map color table.

cvi new_image_type_number

Convert to another image type new_image_type_number 1-10. 5=unsigned short, 10=float, see below.

cvd new_data_type_number

Convert image and grids to another data type new_data_type_number 1-10.

Info
titleNumber 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

Insert an image into an image cube in workspace worspace_cubename at layer layer_number.

sla layer_number | top | bot | mid

Select an image layer from an image cube at layer layer_number or specify from top, bottom or middle layer of the cube.

slc x y | cur

Select column at x,y values or at cursor position.

pgr x | y | z | xy

Calculate point gradient of a grid in selected direction.

der2

Second derivative for a grid based on double tangent calculation.

qua

Quantize rgb to index. The filter takes a 3 component RGB image as input and produces a one component index image as output, along with a lookup table that contains the color definitions for the index values.

lst

List image data.

ext 0 | 1 | 2

Extract image component to make a grid.

mag

Image magnitude calculation.

view

Display the bitmap in a separate image window. Usefull for large images.

del

Delete image window mapped by ima view.

grid

Will transfer an image with one component per grid node into a grid, also called structured points.

combine image1 image2 image3

An image is generated by combing RGB from three images. R from first, G from second and B from third.

Examples

Ex.1: Image to grid

...