🤖 AIによる機械翻訳(非公式) — これは OpenCV 5.0.0 公式リファレンス(英語)を AI (Claude) で自動翻訳したものです。訳に誤りを含む場合があります。正確な情報は 公式英語版(原文) を参照してください。

クラス Animation


  • public class Animation extends java.lang.Object
    複数のフレームからなるアニメーションを表す。Animation 構造体は、アニメーション形式(例: GIF, AVIF, APNG, WebP)に由来するようなアニメーションシーケンスのデータを格納・管理するために設計されている。ループ再生、背景色設定、フレームのタイミング、フレームの格納をサポートする。
    • フィールドの詳細

      • nativeObj

        protected final long nativeObj
    • コンストラクタの詳細

      • Animation

        protected Animation​(long addr)
      • Animation

        public Animation​(int loopCount,
                         Scalar bgColor)
        Constructs an Animation object with optional loop count and background color.
        引数:
        loopCount - An integer representing the number of times the animation should loop:
        • 0(デフォルト)は無限ループを示し、アニメーションが連続して再生され続けることを意味する。
        • 正の値は有限の繰り返し回数を表し、アニメーションを限られた回数だけ再生できる。
        • 負の値、または 0xffff(65535)の最大値を超える値が指定された場合は、有効な範囲を保つために 0(無限ループ)にリセットされる。
        bgColor - A Scalar object representing the background color in BGR format:
        • デフォルトは Scalar() で、空の色を表す(サポートされている場合は通常は透明)。
        • この背景色は、透明度を持つフレームの背後に単色の塗りつぶしを提供し、一貫した表示外観を保証する。
      • Animation

        public Animation​(int loopCount)
        Constructs an Animation object with optional loop count and background color.
        引数:
        loopCount - An integer representing the number of times the animation should loop:
        • 0(デフォルト)は無限ループを示し、アニメーションが連続して再生され続けることを意味する。
        • 正の値は有限の繰り返し回数を表し、アニメーションを限られた回数だけ再生できる。
        • 負の値、または 0xffff(65535)の最大値を超える値が指定された場合は、有効な範囲を保つために 0(無限ループ)にリセットされる。
        • デフォルトは Scalar() で、空の色を表す(サポートされている場合は通常は透明)。
        • この背景色は、透明度を持つフレームの背後に単色の塗りつぶしを提供し、一貫した表示外観を保証する。
      • Animation

        public Animation()
        Constructs an Animation object with optional loop count and background color.
        • 0(デフォルト)は無限ループを示し、アニメーションが連続して再生され続けることを意味する。
        • 正の値は有限の繰り返し回数を表し、アニメーションを限られた回数だけ再生できる。
        • 負の値、または 0xffff(65535)の最大値を超える値が指定された場合は、有効な範囲を保つために 0(無限ループ)にリセットされる。
        • デフォルトは Scalar() で、空の色を表す(サポートされている場合は通常は透明)。
        • この背景色は、透明度を持つフレームの背後に単色の塗りつぶしを提供し、一貫した表示外観を保証する。
    • メソッドの詳細

      • getNativeObjAddr

        public long getNativeObjAddr()
      • __fromPtr__

        public static Animation __fromPtr__​(long addr)
      • get_loop_count

        public int get_loop_count()
      • set_loop_count

        public void set_loop_count​(int loop_count)
      • get_bgcolor

        public Scalar get_bgcolor()
      • set_bgcolor

        public void set_bgcolor​(Scalar bgcolor)
      • get_durations

        public MatOfInt get_durations()
      • set_durations

        public void set_durations​(MatOfInt durations)
      • get_frames

        public java.util.List<Mat> get_frames()
      • set_frames

        public void set_frames​(java.util.List<Mat> frames)
      • get_still_image

        public Mat get_still_image()
      • set_still_image

        public void set_still_image​(Mat still_image)