Fct_Match_Template_File
Fct_Match_Template_Frame
Fct_Match_Template_Geom
Fct_Match_Template_Id
Fct_Match_Template_Light
Fct_Match_Template_Point
Fct_Match_Template_TAG
Fct_Match_Template_Window
These function will match a template (using UNIX syntax) with the actual names of elements in the database. It will then place pointers to all the matching elements in a vector. This function is used to implement template matching in the scripts.
Syntax
int Fct_Match_Template_File(
char *t_name,
int max_match,
SliceO_File *List[]
) ;
int Fct_Match_Template_Frame(
char *t_name,
int max_match,
SliceO_Frame *List[]
) ;
int Fct_Match_Template_Geom(
char *t_name,
int max_match,
SliceO_Geom *List[]
) ;
int Fct_Match_Template_Id(
char *t_name,
int max_match,
unsigned short *List[]
) ;
int Fct_Match_Template_Light(
char *t_name,
int max_match,
unsigned short *List[]
) ;
int Fct_Match_Template_Point(
char *t_name,
int max_match,
SliceO_Point *List[]
) ;
int Fct_Match_Template_TAG(
char *t_name,
int max_match,
unsigned short *List[]
) ;
int Fct_Match_Template_Window(
char *t_name,
int max_match,
SliceO_Window *List[]
) ;
Parameters
t_name
Template string.
max_match
Maximum number of accepted matches
list
Vector of pointers to receive the matches.
Return value
This function return the actual number of item matched.
Remarks
The matching syntax used in sliceOmatic is inspired by the UNIX matching syntax.
So if, for example, you to delete all the Tags between 20 and 59 on the presently selected images, you could replace the "t_tag" in the following command:
Tag: t_tag del
with the string "[2-5]?"
Tag: [2-5]? del
Requirements
Header:
sliceO_include.hpp
Library:
sliceO_Structures.lib
Example
See also