Skip to content

set_compriseSetCompriseSetCompriseset_compriseT_set_comprise🔗

説明🔗

set_compriseSetCompriseSetCompriseset_compriseT_set_comprise — 画像行列出力クリッピングを定義する。

警告🔗

set_compriseSetComprise は、現在では使用されず、下位互換性 維持の ためだけに提供されます。

書式🔗

set_comprise( window WindowHandle, string Mode )void SetComprise( const HTuple& WindowHandle, const HTuple& Mode )static void HOperatorSet.SetComprise( HTuple windowHandle, HTuple mode )def set_comprise( window_handle: HHandle, mode: str ) -> None

Herror T_set_comprise( const Htuple WindowHandle, const Htuple Mode )

void HWindow::SetComprise( const HString& Mode ) const

void HWindow::SetComprise( const char* Mode ) const

void HWindow::SetComprise( const wchar_t* Mode ) const (Windows only)

void HWindow.SetComprise( string mode )

説明🔗

set_compriseSetComprise は、画像マトリックスの出力クリッピングを定義 します。Modemodemode が ‘object’ に設定されると、出力オブジェクト に属しているグレイ値のみが表示されます。’image’ に設定されると、す べての画像マトリックスが表示されます。デフォルトは ‘object’ です。

注意🔗

Modemodemode が ‘image’ に設定されるならば、未定義のグレイ値が表 示される可能性があります。状況に応じて、それらは黒になるか、ランダム な内容をもつことができます。これについては例を参照ください。

実行情報🔗

実行情報
  • マルチスレッドタイプ: リエントラント(非排他なオペレーターと並列に動作)

  • マルチスレッドスコープ: グローバル(他のスレッドから呼び出される可能性あり)

  • 並列演算処理には未対応

パラメーター🔗

WindowHandlewindowHandlewindow_handle (input_control) window → (handle)HTuple (HHandle)HWindow, HTuple (IntPtr)HHandleHtuple (handle)

ウインドウハンドル

Modemodemode (input_control) string → (string)HTuple (HString)HTuple (string)strHtuple (char*)

グレイ値出力のためのクリッピングモード

初期値: 'object'"object"
値のリスト: 'image', 'object'"image", "object"

例🔗

(HDevelop)


read_image(Image,'fabrik')
gen_circle (Circle, 200, 200, 100.5)
reduce_domain (Image, Circle, ImageReduced)
set_system('init_new_image','false')
sobel_amp(ImageReduced,SobelReduced,'sum_abs',3)
dev_display (SobelReduced)
get_comprise(WindowHandle,Mode)
set_comprise(WindowHandle,'image')
stop ()
dev_display (SobelReduced)

結果🔗

Modemodemode が正しく、ウインドウも有効である場合、 set_compriseSetComprise は 2 (H_MSG_TRUE) を返します。それ以外の場合には例外が 発生します。

他のオペレーターとの組み合わせ🔗

組み合わせ

前処理の候補

get_compriseGetComprise

後処理の候補

disp_imageDispImage

関連項目

get_compriseGetComprise, disp_imageDispImage, disp_colorDispColor

モジュール🔗

Foundation