🤖 AIによる機械翻訳(非公式) — これは OpenCV 5.0.0 公式リファレンス(英語)を AI (Claude) で自動翻訳したものです。訳に誤りを含む場合があります。正確な情報は 公式英語版(原文) を参照してください。
Package org.opencv.photo
クラス AlignMTB
- java.lang.Object
-
- org.opencv.core.Algorithm
-
- org.opencv.photo.AlignExposures
-
- org.opencv.photo.AlignMTB
public class AlignMTB extends AlignExposures
このアルゴリズムは、画像を中央値しきい値ビットマップ(median threshold bitmap)(輝度が中央値より明るいピクセルを1、それ以外を0とする)に変換し、得られたビットマップをビット演算を用いて位置合わせする。露光に対して不変であるため、露光値やカメラ応答は不要である。この実装では、新しく生じる画像領域はゼロで埋められる。詳細はCITE: GW03 を参照。
-
-
コンストラクタの要約
コンストラクタ Modifier Constructor Description protectedAlignMTB​(long addr)
-
メソッドの要約
すべてのメソッド 静的メソッド インスタンスメソッド 具象メソッド Modifier and Type Method Description static AlignMTB__fromPtr__​(long addr)PointcalculateShift​(Mat img0, Mat img1)Calculates shift between two images, i.voidcomputeBitmaps​(Mat img, Mat tb, Mat eb)Computes median threshold and exclude bitmaps of given image.booleangetCut()intgetExcludeRange()intgetMaxBits()voidprocess​(java.util.List<Mat> src, java.util.List<Mat> dst)Short version of process, that doesn't take extra arguments.voidprocess​(java.util.List<Mat> src, java.util.List<Mat> dst, Mat times, Mat response)Aligns imagesvoidsetCut​(boolean value)voidsetExcludeRange​(int exclude_range)voidsetMaxBits​(int max_bits)voidshiftMat​(Mat src, Mat dst, Point shift)Helper function, that shift Mat filling new regions with zeros.-
クラス org.opencv.core.Algorithm から継承されたメソッド
clear, empty, getDefaultName, getNativeObjAddr, save
-
-
-
-
メソッドの詳細
-
__fromPtr__
public static AlignMTB __fromPtr__​(long addr)
-
process
public void process​(java.util.List<Mat> src, java.util.List<Mat> dst, Mat times, Mat response)
Description copied from class:AlignExposuresAligns images- オーバーライド:
- クラス
AlignExposures内のprocess - 引数:
src- 入力画像のベクトルdst- 位置合わせされた画像のベクトルtimes- 各画像の露光時間値のベクトルresponse- 各ピクセル値に対する逆カメラ応答関数を表す256x1の行列。画像と同じチャンネル数を持つ必要がある。
-
process
public void process​(java.util.List<Mat> src, java.util.List<Mat> dst)
Short version of process, that doesn't take extra arguments.- 引数:
src- 入力画像のベクトルdst- 位置合わせされた画像のベクトル
-
calculateShift
public Point calculateShift​(Mat img0, Mat img1)
Calculates shift between two images, i. e. how to shift the second image to correspond it with the first.- 引数:
img0- 1番目の画像img1- 2番目の画像- 戻り値:
- 自動生成
-
shiftMat
public void shiftMat​(Mat src, Mat dst, Point shift)
Helper function, that shift Mat filling new regions with zeros.- 引数:
src- 入力画像dst- 結果画像shift- シフト値
-
computeBitmaps
public void computeBitmaps​(Mat img, Mat tb, Mat eb)
Computes median threshold and exclude bitmaps of given image.- 引数:
img- 入力画像tb- 中央値しきい値ビットマップeb- 除外ビットマップ
-
getMaxBits
public int getMaxBits()
-
setMaxBits
public void setMaxBits​(int max_bits)
-
getExcludeRange
public int getExcludeRange()
-
setExcludeRange
public void setExcludeRange​(int exclude_range)
-
getCut
public boolean getCut()
-
setCut
public void setCut​(boolean value)
-
-