Skip to content

change_formatChangeFormatChangeFormatchange_formatchange_format🔗

説明🔗

change_formatChangeFormatChangeFormatchange_formatchange_format — 画像サイズを変更する。

書式🔗

change_format( image Image, out image ImagePart, extent.x Width, extent.y Height )void ChangeFormat( const HObject& Image, HObject* ImagePart, const HTuple& Width, const HTuple& Height )static void HOperatorSet.ChangeFormat( HObject image, out HObject imagePart, HTuple width, HTuple height )def change_format( image: HObject, width: int, height: int ) -> HObject

Herror change_format( const Hobject Image, Hobject* ImagePart, const Hlong Width, const Hlong Height )

Herror T_change_format( const Hobject Image, Hobject* ImagePart, const Htuple Width, const Htuple Height )

HImage HImage::ChangeFormat( Hlong Width, Hlong Height ) const

HImage HImage.ChangeFormat( int width, int height )

説明🔗

オペレーター change_formatChangeFormat は、指示された高さと幅に 入力画像のサイズを拡大または縮小します。画像縮小の場合、 画像の右もしくは下部の端で切り取られます。一方、画像拡大の場合、 追加された領域は 0 に設定されます。ドメインは入力画像のドメインと同じサイズであり、 画像縮小の場合は新しい画像のサイズに切り取られます。ズームは行われません。

実行情報🔗

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

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

  • tupleレベルで自動的に並列演算処理を実施

パラメーター🔗

Imageimageimage (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)

入力画像

ImagePartimagePartimage_part (output_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)

新しいフォーマットをもつ画像

Widthwidthwidth (input_control) extent.x → (integer)HTuple (Hlong)HTuple (int / long)intHtuple (Hlong)

新しい画像の幅

初期値: 512512
推奨値: 32, 64, 128, 256, 512, 768, 102432, 64, 128, 256, 512, 768, 1024

Heightheightheight (input_control) extent.y → (integer)HTuple (Hlong)HTuple (int / long)intHtuple (Hlong)

新しい画像の高さ

初期値: 512512
推奨値: 32, 64, 128, 256, 512, 525, 102432, 64, 128, 256, 512, 525, 1024

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

組み合わせ

後処理の候補

disp_imageDispImage

他の選択候補

crop_partCropPart

関連項目

zoom_image_sizeZoomImageSize, zoom_image_factorZoomImageFactor

モジュール🔗

Foundation