texture_cooc ( : TextureImage : FileName, Width, Height : Precision )

Generate synthetic texture by using co-occurrence matrices.

The operator texture_cooc reads the co-occurrence matrices created by the function write_cooc_matrix from the file FileName and generates from the matrices a synthetic texture in gray value representation using a variant of the metropolis method.


Parameters

TextureImage (output_object)
image -> object
Generated texture image.

FileName (input_control)
filename.named -> string
File name of co-occurrence data.
Default value: 'test.coc'

Width (input_control)
extent.x -> integer
Image width.
Default value: 64
Suggested values: 16, 32, 64, 128, 256, 512

Height (input_control)
extent.y -> integer
Image height.
Default value: 64
Suggested values: 16, 32, 64, 128, 256, 512

Precision (output_control)
real-array -> real
Quality of generated texture (four values for the four directions).


Result

The operator texture_cooc returns the value TRUE if input parameters and structure as well as the contents of the file with the co-occurrence matrices are correct and the texture could be generated. Otherwise an exception is raised.


Possible Predecessors

write_cooc_matrix


Possible Successors

disp_image, laws_byte



Copyright © 1996-1997 MVTec Software GmbH