query_coloredT_query_coloredQueryColoredQueryColoredquery_colored (算子名称)

名称

query_coloredT_query_coloredQueryColoredQueryColoredquery_colored — Query the number of colors for color output.

参数签名

query_colored( : : : PossibleNumberOfColors)

Herror T_query_colored(Htuple* PossibleNumberOfColors)

void QueryColored(HTuple* PossibleNumberOfColors)

static HTuple HInfo::QueryColored()

static void HOperatorSet.QueryColored(out HTuple possibleNumberOfColors)

static HTuple HInfo.QueryColored()

def query_colored() -> Sequence[int]

描述

query_coloredquery_coloredQueryColoredQueryColoredQueryColoredquery_colored returns all possible parameter values for set_coloredset_coloredSetColoredSetColoredSetColoredset_colored. set_coloredset_coloredSetColoredSetColoredSetColoredset_colored defines how many colors are used for region or graphics output.

运行信息

参数表

PossibleNumberOfColorsPossibleNumberOfColorsPossibleNumberOfColorsPossibleNumberOfColorspossibleNumberOfColorspossible_number_of_colors (output_control)  integer-array HTupleSequence[int]HTupleHtuple (integer) (int / long) (Hlong) (Hlong)

Tuple of the possible numbers of colors.

例程 (HDevelop)

regiongrowing(Image,Regions,5,5,6,100)
query_colored(Colors)
dev_set_colored(Colors[1])
dev_display (Regions)

例程 (C)

Htuple Colors;
regiongrowing(Image,&Seg,5,5,6,100);
T_query_colored(&Colors);
create_tuple_i(&color,get_i(Colors,1));
T_set_colored(WindowHandle,color);
destroy_tuple(color);
T_disp_region(Seg,WindowHandle);

例程 (HDevelop)

regiongrowing(Image,Regions,5,5,6,100)
query_colored(Colors)
dev_set_colored(Colors[1])
dev_display (Regions)

例程 (HDevelop)

regiongrowing(Image,Regions,5,5,6,100)
query_colored(Colors)
dev_set_colored(Colors[1])
dev_display (Regions)

例程 (HDevelop)

regiongrowing(Image,Regions,5,5,6,100)
query_colored(Colors)
dev_set_colored(Colors[1])
dev_display (Regions)

结果

query_coloredquery_coloredQueryColoredQueryColoredQueryColoredquery_colored always returns 2 ( H_MSG_TRUE) .

可能的后置算子

set_coloredset_coloredSetColoredSetColoredSetColoredset_colored, set_colorset_colorSetColorSetColorSetColorset_color, disp_regiondisp_regionDispRegionDispRegionDispRegiondisp_region

可替代算子

query_colorquery_colorQueryColorQueryColorQueryColorquery_color

参考其它

set_coloredset_coloredSetColoredSetColoredSetColoredset_colored, set_colorset_colorSetColorSetColorSetColorset_color

模块

Foundation