🤖 AIによる機械翻訳(非公式) — これは OpenCV 5.0.0 公式リファレンス(英語)を AI (Claude) で自動翻訳したものです。訳に誤りを含む場合があります。正確な情報は 公式英語版(原文) を参照してください。
Package org.opencv.bioinspired
クラス TransientAreasSegmentationModule
- java.lang.Object
-
- org.opencv.core.Algorithm
-
- org.opencv.bioinspired.TransientAreasSegmentationModule
-
public class TransientAreasSegmentationModule extends Algorithm
class which provides a transient/moving areas segmentation module perform a locally adapted segmentation by using the retina magno input data Based on Alexandre BENOIT thesis: "Le système visuel humain au secours de la vision par ordinateur" 3 spatio temporal filters are used:- 1つ目は、入力された運動エネルギーのノイズと局所的な変動をフィルタリングするもの
- 2つ目(より強力なローパス空間フィルタ)は、近傍の運動エネルギーを与えるもの。セグメンテーションはこれら両方の出力の比較からなり、局所的な運動エネルギーが近傍の運動エネルギーより高ければ、その領域は移動していると見なされてセグメント化される
- 3つ目のより強力なローパスフィルタは、より広い領域における「運動コンテキスト」に関する滑らかな情報を提供することで判定を補助する
-
-
コンストラクタの要約
コンストラクタ Modifier Constructor Description protectedTransientAreasSegmentationModule​(long addr)
-
メソッドの要約
すべてのメソッド 静的メソッド インスタンスメソッド 具象メソッド Modifier and Type Method Description static TransientAreasSegmentationModule__fromPtr__​(long addr)voidclearAllBuffers()cleans all the buffers of the instancestatic TransientAreasSegmentationModulecreate​(Size inputSize)allocatorvoidgetSegmentationPicture​(Mat transientAreas)access function return the last segmentation result: a boolean picture which is resampled between 0 and 255 for a display purposeSizegetSize()return the sze of the manage input and output imagesjava.lang.StringprintSetup()parameters setup display methodvoidrun​(Mat inputToSegment)main processing method, get result using methods getSegmentationPicture()voidrun​(Mat inputToSegment, int channelIndex)main processing method, get result using methods getSegmentationPicture()voidsetup()try to open an XML segmentation parameters file to adjust current segmentation instance setup if the xml file does not exist, then default setup is applied warning, Exceptions are thrown if read XML file is not validvoidsetup​(java.lang.String segmentationParameterFile)try to open an XML segmentation parameters file to adjust current segmentation instance setup if the xml file does not exist, then default setup is applied warning, Exceptions are thrown if read XML file is not validvoidsetup​(java.lang.String segmentationParameterFile, boolean applyDefaultSetupOnFailure)try to open an XML segmentation parameters file to adjust current segmentation instance setup if the xml file does not exist, then default setup is applied warning, Exceptions are thrown if read XML file is not validvoidwrite​(java.lang.String fs)write xml/yml formated parameters information-
クラス org.opencv.core.Algorithm から継承されたメソッド
clear, empty, getDefaultName, getNativeObjAddr, save
-
-
-
-
メソッドの詳細
-
__fromPtr__
public static TransientAreasSegmentationModule __fromPtr__​(long addr)
-
getSize
public Size getSize()
return the sze of the manage input and output images- 戻り値:
- 自動生成
-
setup
public void setup​(java.lang.String segmentationParameterFile, boolean applyDefaultSetupOnFailure)try to open an XML segmentation parameters file to adjust current segmentation instance setup- xmlファイルが存在しない場合は、デフォルト設定が適用される
- 警告。読み込んだXMLファイルが正しくない場合は例外がスローされる
- 引数:
segmentationParameterFile- :パラメータのファイル名applyDefaultSetupOnFailure- :エラー時に例外をスローすべき場合はtrueを設定する
-
setup
public void setup​(java.lang.String segmentationParameterFile)
try to open an XML segmentation parameters file to adjust current segmentation instance setup- xmlファイルが存在しない場合は、デフォルト設定が適用される
- 警告。読み込んだXMLファイルが正しくない場合は例外がスローされる
- 引数:
segmentationParameterFile- :パラメータのファイル名
-
setup
public void setup()
try to open an XML segmentation parameters file to adjust current segmentation instance setup- xmlファイルが存在しない場合は、デフォルト設定が適用される
- 警告。読み込んだXMLファイルが正しくない場合は例外がスローされる
-
printSetup
public java.lang.String printSetup()
parameters setup display method- 戻り値:
- 整形された引数情報を含む文字列
-
write
public void write​(java.lang.String fs)
write xml/yml formated parameters information- 引数:
fs- :整形されたパラメータ情報を書き込んで開くxmlファイルのファイル名
-
run
public void run​(Mat inputToSegment, int channelIndex)
main processing method, get result using methods getSegmentationPicture()- 引数:
inputToSegment- :処理対象の画像。インスタンスのバッファサイズと一致している必要がある!channelIndex- :マルチチャンネル画像の場合に処理するチャンネル
-
run
public void run​(Mat inputToSegment)
main processing method, get result using methods getSegmentationPicture()- 引数:
inputToSegment- :処理対象の画像。インスタンスのバッファサイズと一致している必要がある!
-
getSegmentationPicture
public void getSegmentationPicture​(Mat transientAreas)
access function return the last segmentation result: a boolean picture which is resampled between 0 and 255 for a display purpose- 引数:
transientAreas- 自動生成
-
clearAllBuffers
public void clearAllBuffers()
cleans all the buffers of the instance
-
create
public static TransientAreasSegmentationModule create​(Size inputSize)
allocator- 引数:
inputSize- :セグメンテーションする入力画像のサイズ(出力も同じサイズになる)- 戻り値:
- 自動生成
-
-