gen_image_surface_second_orderGenImageSurfaceSecondOrderGenImageSurfaceSecondOrdergen_image_surface_second_ordergen_image_surface_second_order
説明
gen_image_surface_second_orderGenImageSurfaceSecondOrderGenImageSurfaceSecondOrdergen_image_surface_second_ordergen_image_surface_second_order — 2 次の多項式でグレイ値曲面を生成する。
書式
gen_image_surface_second_order( out image ImageSurface, string Type, number Alpha, number Beta, number Gamma, number Delta, number Epsilon, number Zeta, number Row, number Column, extent.x Width, extent.y Height )void GenImageSurfaceSecondOrder( HObject* ImageSurface, const HTuple& Type, const HTuple& Alpha, const HTuple& Beta, const HTuple& Gamma, const HTuple& Delta, const HTuple& Epsilon, const HTuple& Zeta, const HTuple& Row, const HTuple& Column, const HTuple& Width, const HTuple& Height )static void HOperatorSet.GenImageSurfaceSecondOrder( out HObject imageSurface, HTuple type, HTuple alpha, HTuple beta, HTuple gamma, HTuple delta, HTuple epsilon, HTuple zeta, HTuple row, HTuple column, HTuple width, HTuple height )def gen_image_surface_second_order( type: str, alpha: float, beta: float, gamma: float, delta: float, epsilon: float, zeta: float, row: float, column: float, width: int, height: int ) -> HObject
Herror gen_image_surface_second_order( Hobject* ImageSurface, const char* Type, double Alpha, double Beta, double Gamma, double Delta, double Epsilon, double Zeta, double Row, double Column, const Hlong Width, const Hlong Height )
Herror T_gen_image_surface_second_order( Hobject* ImageSurface, const Htuple Type, const Htuple Alpha, const Htuple Beta, const Htuple Gamma, const Htuple Delta, const Htuple Epsilon, const Htuple Zeta, const Htuple Row, const Htuple Column, const Htuple Width, const Htuple Height )
void HImage::GenImageSurfaceSecondOrder( const HString& Type, double Alpha, double Beta, double Gamma, double Delta, double Epsilon, double Zeta, double Row, double Column, Hlong Width, Hlong Height )
void HImage::GenImageSurfaceSecondOrder( const char* Type, double Alpha, double Beta, double Gamma, double Delta, double Epsilon, double Zeta, double Row, double Column, Hlong Width, Hlong Height )
void HImage::GenImageSurfaceSecondOrder( const wchar_t* Type, double Alpha, double Beta, double Gamma, double Delta, double Epsilon, double Zeta, double Row, double Column, Hlong Width, Hlong Height ) (Windows only)
void HImage.GenImageSurfaceSecondOrder( string type, double alpha, double beta, double gamma, double delta, double epsilon, double zeta, double row, double column, int width, int height )
説明
オペレーター gen_image_surface_second_orderGenImageSurfaceSecondOrder は下記の数式に
よってグレイ値曲面を生成します。
\[\begin{eqnarray*}
\textrm{ImageSurface}(r,c) & = & \textrm{Alpha}(r - \textrm{Row})^2 \\
& + & \textrm{Beta}(c - \textrm{Column})^2 \\
& + & \textrm{Gamma}(r - \textrm{Row})*(c - \textrm{Column}) \\
& + & \textrm{Delta}(r - \textrm{Row}) \\
& + & \textrm{Epsilon}(c - \textrm{Column}) \\
& + & \textrm{Zeta}
\end{eqnarray*}\]
画像のサイズは Widthwidthwidth および Heightheightheight によって決定
されます。
パラメーターRowrowrowとColumncolumncolumnは生成されたグレイ値表面の参照点を定義します。
グレイ値表面のパラメータを決定するために fit_surface_second_orderFitSurfaceSecondOrder が使われた場合、
この参照点は、表面の方程式で使われる重心に対応する必要があります (fit_surface_second_orderFitSurfaceSecondOrder 参照)。
その座標は次のように求められます。
| |
intersection(ROI, Image, RegionIntersection)Intersection(ROI, Image, RegionIntersection)Intersection(ROI, Image, RegionIntersection)intersection(ROI, Image, RegionIntersection)intersection(ROI, Image, RegionIntersection) |
fit_surface_second_order(RegionIntersection, Image, Algorithm, Iterations, ClippingFactor, Alpha, Beta, Gamma, Delta, Epsilon, Zeta) |
area_center(RegionIntersection, Area, Row, Column)AreaCenter(RegionIntersection, Area, Row, Column)AreaCenter(RegionIntersection, Area, Row, Column)area_center(RegionIntersection, Area, Row, Column)area_center(RegionIntersection, Area, Row, Column) |
gen_image_surface_second_order(ImageSurface, Type, Alpha, Beta, Gamma, Delta, Epsilon, Zeta, Row, Column, Width, Height)GenImageSurfaceSecondOrder(ImageSurface, Type, Alpha, Beta, Gamma, Delta, Epsilon, Zeta, Row, Column, Width, Height)GenImageSurfaceSecondOrder(ImageSurface, Type, Alpha, Beta, Gamma, Delta, Epsilon, Zeta, Row, Column, Width, Height)gen_image_surface_second_order(ImageSurface, Type, Alpha, Beta, Gamma, Delta, Epsilon, Zeta, Row, Column, Width, Height)gen_image_surface_second_order(ImageSurface, Type, Alpha, Beta, Gamma, Delta, Epsilon, Zeta, Row, Column, Width, Height) |
グレイ値はTypetypetypeで指定した型となります
(ピクセルの型についての詳細はgen_image_constGenImageConstを参照してください)。
有効なエリアの外側にあるグレイ値は切り取られます。
実行情報
実行情報
パラメーター
ImageSurfaceimageSurfaceimage_surface (output_object) image → object (byte / uint2 / real)HObject (byte / uint2 / real)HImage (byte / uint2 / real)HObject (byte / uint2 / real)Hobject * (byte / uint2 / real)
新しい画像行列をもつ生成された画像
Typetypetype (input_control) string → (string)HTuple (HString)HTuple (string)strHtuple (char*)
ピクセルタイプ
初期値: 'byte'"byte"
値のリスト: 'byte', 'real', 'uint2'"byte", "real", "uint2"
Alphaalphaalpha (input_control) number → (real)HTuple (double)HTuple (double)floatHtuple (double)
行方向に対する 2 次の係数
初期値: 1.01.0
推奨値: -2.0, -1.0, -0.5, -0.0, 0.5, 1.0, 2.0-2.0, -1.0, -0.5, -0.0, 0.5, 1.0, 2.0
最小増分: 0.000001
推奨増分: -0.005
Betabetabeta (input_control) number → (real)HTuple (double)HTuple (double)floatHtuple (double)
列方向に対する 2 次の係数
初期値: 1.01.0
推奨値: -2.0, -1.0, -0.5, -0.0, 0.5, 1.0, 2.0-2.0, -1.0, -0.5, -0.0, 0.5, 1.0, 2.0
最小増分: 0.000001
推奨増分: -0.005
Gammagammagamma (input_control) number → (real)HTuple (double)HTuple (double)floatHtuple (double)
混合された(Mixed) 2 次の係数
初期値: 1.01.0
推奨値: -2.0, -1.0, -0.5, -0.0, 0.5, 1.0, 2.0-2.0, -1.0, -0.5, -0.0, 0.5, 1.0, 2.0
最小増分: 0.000001
推奨増分: -0.005
Deltadeltadelta (input_control) number → (real)HTuple (double)HTuple (double)floatHtuple (double)
行方向に対する 1 次の係数
初期値: 1.01.0
推奨値: -2.0, -1.0, -0.5, -0.0, 0.5, 1.0, 2.0-2.0, -1.0, -0.5, -0.0, 0.5, 1.0, 2.0
最小増分: 0.000001
推奨増分: -0.005
Epsilonepsilonepsilon (input_control) number → (real)HTuple (double)HTuple (double)floatHtuple (double)
列方向に対する 1 次の係数
初期値: 1.01.0
推奨値: -2.0, -1.0, -0.5, -0.0, 0.5, 1.0, 2.0-2.0, -1.0, -0.5, -0.0, 0.5, 1.0, 2.0
最小増分: 0.000001
推奨増分: -0.005
Zetazetazeta (input_control) number → (real)HTuple (double)HTuple (double)floatHtuple (double)
0 次の係数
初期値: 1.01.0
推奨値: -2.0, -1.0, -0.5, -0.0, 0.5, 1.0, 2.0-2.0, -1.0, -0.5, -0.0, 0.5, 1.0, 2.0
最小増分: 0.000001
推奨増分: -0.005
Rowrowrow (input_control) number → (real)HTuple (double)HTuple (double)floatHtuple (double)
面の基準点の行座標
初期値: 256.0256.0
推奨値: 0.0, 128.0, 256.0, 512.00.0, 128.0, 256.0, 512.0
最小増分: 0.000001
推奨増分: -0.005
Columncolumncolumn (input_control) number → (real)HTuple (double)HTuple (double)floatHtuple (double)
面の基準点の列座標
初期値: 256.0256.0
推奨値: 0.0, 128.0, 256.0, 512.00.0, 128.0, 256.0, 512.0
最小増分: 0.000001
推奨増分: -0.005
Widthwidthwidth (input_control) extent.x → (integer)HTuple (Hlong)HTuple (int / long)intHtuple (Hlong)
画像の幅
初期値: 512512
推奨値: 128, 256, 512, 1024128, 256, 512, 1024
値域: 1 ≤ Width (lin)
最小増分: 1
推奨増分: 10
Heightheightheight (input_control) extent.y → (integer)HTuple (Hlong)HTuple (int / long)intHtuple (Hlong)
画像の高さ
初期値: 512512
推奨値: 128, 256, 512, 1024128, 256, 512, 1024
値域: 1 ≤ Height (lin)
最小増分: 1
推奨増分: 10
例
(HDevelop)
* Adjust an inhomogeneous illumination
* using gen_image_surface_second_order
read_image (Image, 'cap_illumination/cap_illumination_01')
get_image_size (Image, Width, Height)
gen_circle (Circle, 495, 630, 350.5)
difference (Image, Circle, RegionDifference)
fit_surface_second_order (RegionDifference, Image, 'regression', 5, 2, \
Alpha, Beta, Gamma, Delta, Epsilon, Zeta)
area_center (RegionDifference, Area, Row, Column)
gen_image_surface_second_order (ImageSurface, 'byte', Alpha, Beta, \
Gamma, Delta, Epsilon, Zeta, Row, Column, \
Width, Height)
sub_image (Image, ImageSurface, ImageSub, 1, 128)
結果
パラメーター値が正しい場合、オペレーター
gen_image_surface_second_orderGenImageSurfaceSecondOrder は、値 2 (H_MSG_TRUE) を返します。そ
れ以外の場合には例外が発生します。
他のオペレーターとの組み合わせ
組み合わせ
前処理の候補
fit_surface_second_orderFitSurfaceSecondOrder
後処理の候補
sub_imageSubImage
関連項目
gen_image_gray_rampGenImageGrayRamp, gen_image_surface_first_orderGenImageSurfaceFirstOrder, gen_image_constGenImageConst
モジュール
Foundation