count_channelsCountChannelsCountChannelscount_channelscount_channels
説明
count_channelsCountChannelsCountChannelscount_channelscount_channels — 画像のチャンネル数をカウントする。
書式
count_channels( image MultiChannelImage, out integer Channels )void CountChannels( const HObject& MultiChannelImage, HTuple* Channels )static void HOperatorSet.CountChannels( HObject multiChannelImage, out HTuple channels )def count_channels( multi_channel_image: HObject ) -> Sequence[int]
def count_channels_s( multi_channel_image: HObject ) -> intHerror count_channels( const Hobject MultiChannelImage, Hlong* Channels )
Herror T_count_channels( const Hobject MultiChannelImage, Htuple* Channels )
HTuple HImage::CountChannels( ) const
HTuple HImage.CountChannels( )
説明
オペレーター count_channelsCountChannels は、すべての入力画像
のチャンネル数をカウントします。
実行情報
実行情報
パラメーター
MultiChannelImagemultiChannelImagemulti_channel_image (input_object) (multichannel-)image(-array) → object (byte / direction / cyclic / int1 / int2 / uint2 / int4 / int8 / real / complex / vector_field)HObject (byte / direction / cyclic / int1 / int2 / uint2 / int4 / int8 / real / complex / vector_field)HImage (byte / direction / cyclic / int1 / int2 / uint2 / int4 / int8 / real / complex / vector_field)HObject (byte / direction / cyclic / int1 / int2 / uint2 / int4 / int8 / real / complex / vector_field)Hobject (byte / direction / cyclic / int1 / int2 / uint2 / int4 / int8 / real / complex / vector_field)
1つまたは複数チャンネル画像
Channelschannelschannels (output_control) integer(-array) → (integer)HTuple (Hlong)HTuple (int / long)Sequence[int]Htuple (Hlong)
チャンネルの数
例
(C)
read_image(&Color,"patras")\;
count_channels(Color,&num_channels)\;
for (i=1\; i<=num_channels\; i++)
{
access_channel(Color,&Channel,i)\;
disp_image(Channel,WindowHandle)\;
clear_obj(Channel)\;
}
他のオペレーターとの組み合わせ
組み合わせ
後処理の候補
access_channelAccessChannel, append_channelAppendChannel, disp_imageDispImage
関連項目
append_channelAppendChannel, access_channelAccessChannel
モジュール
Foundation