8 private const int textureSize = 64;
9 private const bool doRandomizeEmptyClusters =
false;
13 UnityEngine.Video.VideoClip[]
videos,
21 "Algorithm convergence"
24 foreach (UnityEngine.Video.VideoClip video in
this.videos)
26 for (
int numIterations = 1; numIterations < 30; numIterations++)
31 textureSize: textureSize,
32 numIterations: numIterations,
40 textureSize: textureSize,
48 private static void AddFixedIterations(
50 UnityEngine.Video.VideoClip video,
59 staggeredJitter:
false,
64 numIterations: numIterations,
65 doRandomizeEmptyClusters: doRandomizeEmptyClusters,
66 useFullResTexRef:
false,
69 workingSize: textureSize,
80 staggeredJitter:
false,
85 numIterations: numIterations,
86 doRandomizeEmptyClusters: doRandomizeEmptyClusters,
87 useFullResTexRef:
false,
91 workingSize: textureSize,
104 staggeredJitter:
false,
109 numIterations: numIterations,
110 doRandomizeEmptyClusters: doRandomizeEmptyClusters,
111 useFullResTexRef:
false,
116 workingSize: textureSize,
126 private static void AddStopCondtion(
127 BenchmarkDescription workList,
128 UnityEngine.Video.VideoClip video,
134 workList.dispatches.Push(
135 new LaunchParameters(
136 staggeredJitter:
false,
141 doRandomizeEmptyClusters: doRandomizeEmptyClusters,
144 workingSize: textureSize,
153 workList.dispatches.Push(
154 new LaunchParameters(
155 staggeredJitter:
false,
160 doRandomizeEmptyClusters: doRandomizeEmptyClusters,
161 useFullResTexRef:
false,
165 workingSize: textureSize,
174 workList.dispatches.Push(
175 new LaunchParameters(
176 staggeredJitter:
false,
182 doRandomizeEmptyClusters: doRandomizeEmptyClusters,
183 useFullResTexRef:
false,
187 workingSize: textureSize,
197 workList.dispatches.Push(
198 new LaunchParameters(
199 staggeredJitter:
false,
205 doRandomizeEmptyClusters: doRandomizeEmptyClusters,
206 useFullResTexRef:
false,
211 workingSize: textureSize,
readonly ComputeShader csHighlightRemoval
readonly UnityEngine.Video.VideoClip[] videos
AlgorithmsConvergence(int kernelSize, UnityEngine.Video.VideoClip[] videos, ComputeShader csHighlightRemoval)
override BenchmarkDescription GenerateBenchmark()
readonly Stack< LaunchParameters > dispatches
Call Dispose after using.
Call Allocate before using and Dispose after using.
static Parameters Default()
Default value of Parameters.p is 2.5, which we experimentally confirmed to be optimal for our dataset...
static bool IsNumIterationsValid(int iterationsKM, int iterations)
const int fullTextureSize