The Complete SPRLIB & ANNLIB

check_map_recipes

- checks whether map recipes in a layer are correct (LOCAL)

SYNOPSIS

int check_map_recipes (layer, prev_layer)

ARGUMENTS

LAYER_RECIPE *layer A pointer to the LAYER_RECIPE structure for layer L.
LAYER_RECIPE *prev_layer A pointer to the LAYER_RECIPE structure for layer L-1.

RETURNS

TRUE if one or more map recipes in layer are incorrect, FALSE if not.

FUNCTION

This function checks whether or not the MAP_RECIPE structures contained in layer are correct. Connections between two maps i and j are governed by the parameters i.FilterSizeX, i.FilterSizeY, i.PixelShiftX, i.PixelShiftY, i.SizeX, i.SizeY, j.SizeX and j.SizeY. Note that two of these can always be deduced from the other 6. However, since all of these have to be specified in a recipe, the redundant values can be used to check the validity of all values.

NOTE

This function is called by check_layer_recipe.

SEE ALSO

create_sharednet

This document was generated using api2html on Thu Mar 5 09:00:00 MET DST 1998