23 namespace SOP_TextureOpticalFlowEnums
34 using namespace UT::Literal;
52 mySourceGroup =
""_UTsh;
53 myGoalGroup =
""_UTsh;
54 myOutputName =
"flow"_UTsh;
56 myBlurringWindowRadius = 7;
57 myUseGaussianFilter =
false;
61 myApproximationWindowRadius = 2;
62 mySmoothnessDegree = 3;
66 myGradientDescentIterations = 25;
67 mySmoothnessWeight = 20;
68 myColorConstancyWeight = 5;
69 myGradientConstancyWeight = 10;
70 myVariationalRefinementIterations = 5;
71 myUseMeanNormalization =
true;
72 myUseSpatialPropagation =
true;
85 if (mySourceGroup != src.mySourceGroup)
return false;
86 if (myGoalGroup != src.myGoalGroup)
return false;
87 if (myOutputName != src.myOutputName)
return false;
88 if (myMethod != src.myMethod)
return false;
89 if (myBlurringWindowRadius != src.myBlurringWindowRadius)
return false;
90 if (myUseGaussianFilter != src.myUseGaussianFilter)
return false;
91 if (myPyramidLevels != src.myPyramidLevels)
return false;
92 if (myPyramidScale != src.myPyramidScale)
return false;
93 if (myIterations != src.myIterations)
return false;
94 if (myApproximationWindowRadius != src.myApproximationWindowRadius)
return false;
95 if (mySmoothnessDegree != src.mySmoothnessDegree)
return false;
96 if (myPatchSize != src.myPatchSize)
return false;
97 if (myPatchStride != src.myPatchStride)
return false;
98 if (myFinestScale != src.myFinestScale)
return false;
99 if (myGradientDescentIterations != src.myGradientDescentIterations)
return false;
100 if (mySmoothnessWeight != src.mySmoothnessWeight)
return false;
101 if (myColorConstancyWeight != src.myColorConstancyWeight)
return false;
102 if (myGradientConstancyWeight != src.myGradientConstancyWeight)
return false;
103 if (myVariationalRefinementIterations != src.myVariationalRefinementIterations)
return false;
104 if (myUseMeanNormalization != src.myUseMeanNormalization)
return false;
105 if (myUseSpatialPropagation != src.myUseSpatialPropagation)
return false;
119 mySourceGroup =
""_UTsh;
121 graph->
evalOpParm(mySourceGroup, nodeidx,
"sourcegroup", time, 0);
122 myGoalGroup =
""_UTsh;
124 graph->
evalOpParm(myGoalGroup, nodeidx,
"goalgroup", time, 0);
125 myOutputName =
"flow"_UTsh;
127 graph->
evalOpParm(myOutputName, nodeidx,
"outputname", time, 0);
130 graph->
evalOpParm(myMethod, nodeidx,
"method", time, 0);
131 myBlurringWindowRadius = 7;
132 if (
true && ( (
true&&!(((
int64(getMethod())!=0)))) ) )
133 graph->
evalOpParm(myBlurringWindowRadius, nodeidx,
"blurringwindowradius", time, 0);
134 myUseGaussianFilter =
false;
135 if (
true && ( (
true&&!(((
int64(getMethod())!=0)))) ) )
136 graph->
evalOpParm(myUseGaussianFilter, nodeidx,
"usegaussianfilter", time, 0);
138 if (
true && ( (
true&&!(((
int64(getMethod())!=0)))) ) )
139 graph->
evalOpParm(myPyramidLevels, nodeidx,
"pyramidlevels", time, 0);
140 myPyramidScale = 0.5;
141 if (
true && ( (
true&&!(((
int64(getMethod())!=0)))) ) )
142 graph->
evalOpParm(myPyramidScale, nodeidx,
"pyramidscale", time, 0);
144 if (
true && ( (
true&&!(((
int64(getMethod())!=0)))) ) )
145 graph->
evalOpParm(myIterations, nodeidx,
"iterations", time, 0);
146 myApproximationWindowRadius = 2;
147 if (
true && ( (
true&&!(((
int64(getMethod())!=0)))) ) )
148 graph->
evalOpParm(myApproximationWindowRadius, nodeidx,
"approximationwindowradius", time, 0);
149 mySmoothnessDegree = 3;
150 if (
true && ( (
true&&!(((
int64(getMethod())!=0)))) ) )
151 graph->
evalOpParm(mySmoothnessDegree, nodeidx,
"smoothnessdegree", time, 0);
153 if (
true && ( (
true&&!(((
int64(getMethod())!=1)))) ) )
154 graph->
evalOpParm(myPatchSize, nodeidx,
"patchsize", time, 0);
156 if (
true && ( (
true&&!(((
int64(getMethod())!=1)))) ) )
157 graph->
evalOpParm(myPatchStride, nodeidx,
"patchstride", time, 0);
159 if (
true && ( (
true&&!(((
int64(getMethod())!=1)))) ) )
160 graph->
evalOpParm(myFinestScale, nodeidx,
"finestscale", time, 0);
161 myGradientDescentIterations = 25;
162 if (
true && ( (
true&&!(((
int64(getMethod())!=1)))) ) )
163 graph->
evalOpParm(myGradientDescentIterations, nodeidx,
"gradientdescentiterations", time, 0);
164 mySmoothnessWeight = 20;
165 if (
true && ( (
true&&!(((
int64(getMethod())!=1)))) ) )
166 graph->
evalOpParm(mySmoothnessWeight, nodeidx,
"smoothnessweight", time, 0);
167 myColorConstancyWeight = 5;
168 if (
true && ( (
true&&!(((
int64(getMethod())!=1)))) ) )
169 graph->
evalOpParm(myColorConstancyWeight, nodeidx,
"colorconstancyweight", time, 0);
170 myGradientConstancyWeight = 10;
171 if (
true && ( (
true&&!(((
int64(getMethod())!=1)))) ) )
172 graph->
evalOpParm(myGradientConstancyWeight, nodeidx,
"gradientconstancyweight", time, 0);
173 myVariationalRefinementIterations = 5;
174 if (
true && ( (
true&&!(((
int64(getMethod())!=1)))) ) )
175 graph->
evalOpParm(myVariationalRefinementIterations, nodeidx,
"variationalrefinementiterations", time, 0);
176 myUseMeanNormalization =
true;
177 if (
true && ( (
true&&!(((
int64(getMethod())!=1)))) ) )
178 graph->
evalOpParm(myUseMeanNormalization, nodeidx,
"usemeannormalization", time, 0);
179 myUseSpatialPropagation =
true;
180 if (
true && ( (
true&&!(((
int64(getMethod())!=1)))) ) )
181 graph->
evalOpParm(myUseSpatialPropagation, nodeidx,
"usespatialpropagation", time, 0);
197 template <
typename T>
204 if (idx.
size() != instance.
size()+1)
209 coerceValue(value, mySourceGroup);
212 coerceValue(value, myGoalGroup);
215 coerceValue(value, myOutputName);
218 coerceValue(value, myMethod);
221 coerceValue(value, myBlurringWindowRadius);
224 coerceValue(value, myUseGaussianFilter);
227 coerceValue(value, myPyramidLevels);
230 coerceValue(value, myPyramidScale);
233 coerceValue(value, myIterations);
236 coerceValue(value, myApproximationWindowRadius);
239 coerceValue(value, mySmoothnessDegree);
242 coerceValue(value, myPatchSize);
245 coerceValue(value, myPatchStride);
248 coerceValue(value, myFinestScale);
251 coerceValue(value, myGradientDescentIterations);
254 coerceValue(value, mySmoothnessWeight);
257 coerceValue(value, myColorConstancyWeight);
260 coerceValue(value, myGradientConstancyWeight);
263 coerceValue(value, myVariationalRefinementIterations);
266 coerceValue(value, myUseMeanNormalization);
269 coerceValue(value, myUseSpatialPropagation);
285 { doGetParmValue(idx, instance, value); }
287 { doGetParmValue(idx, instance, value); }
289 { doGetParmValue(idx, instance, value); }
291 { doGetParmValue(idx, instance, value); }
293 { doGetParmValue(idx, instance, value); }
295 { doGetParmValue(idx, instance, value); }
297 { doGetParmValue(idx, instance, value); }
299 { doGetParmValue(idx, instance, value); }
301 { doGetParmValue(idx, instance, value); }
303 { doGetParmValue(idx, instance, value); }
305 { doGetParmValue(idx, instance, value); }
307 template <
typename T>
314 if (idx.
size() != instance.
size()+1)
319 coerceValue(mySourceGroup, ( ( value ) ));
322 coerceValue(myGoalGroup, ( ( value ) ));
325 coerceValue(myOutputName, ( ( value ) ));
328 coerceValue(myMethod, clampMinValue(0, clampMaxValue(1, value ) ));
331 coerceValue(myBlurringWindowRadius, clampMinValue(0, ( value ) ));
334 coerceValue(myUseGaussianFilter, ( ( value ) ));
337 coerceValue(myPyramidLevels, clampMinValue(1, ( value ) ));
340 coerceValue(myPyramidScale, clampMinValue(0.1, clampMaxValue(0.9, value ) ));
343 coerceValue(myIterations, clampMinValue(1, ( value ) ));
346 coerceValue(myApproximationWindowRadius, clampMinValue(0.25, ( value ) ));
349 coerceValue(mySmoothnessDegree, clampMinValue(1, ( value ) ));
352 coerceValue(myPatchSize, clampMinValue(1, ( value ) ));
355 coerceValue(myPatchStride, clampMinValue(1, ( value ) ));
358 coerceValue(myFinestScale, clampMinValue(0, ( value ) ));
361 coerceValue(myGradientDescentIterations, clampMinValue(1, ( value ) ));
364 coerceValue(mySmoothnessWeight, clampMinValue(0, ( value ) ));
367 coerceValue(myColorConstancyWeight, clampMinValue(0, ( value ) ));
370 coerceValue(myGradientConstancyWeight, clampMinValue(0, ( value ) ));
373 coerceValue(myVariationalRefinementIterations, clampMinValue(0, ( value ) ));
376 coerceValue(myUseMeanNormalization, ( ( value ) ));
379 coerceValue(myUseSpatialPropagation, ( ( value ) ));
386 { doSetParmValue(idx, instance, value); }
388 { doSetParmValue(idx, instance, value); }
390 { doSetParmValue(idx, instance, value); }
392 { doSetParmValue(idx, instance, value); }
394 { doSetParmValue(idx, instance, value); }
396 { doSetParmValue(idx, instance, value); }
398 { doSetParmValue(idx, instance, value); }
400 { doSetParmValue(idx, instance, value); }
402 { doSetParmValue(idx, instance, value); }
404 { doSetParmValue(idx, instance, value); }
406 { doSetParmValue(idx, instance, value); }
422 if (fieldnum.
size() < 1)
427 return "sourcegroup";
435 return "blurringwindowradius";
437 return "usegaussianfilter";
439 return "pyramidlevels";
441 return "pyramidscale";
445 return "approximationwindowradius";
447 return "smoothnessdegree";
451 return "patchstride";
453 return "finestscale";
455 return "gradientdescentiterations";
457 return "smoothnessweight";
459 return "colorconstancyweight";
461 return "gradientconstancyweight";
463 return "variationalrefinementiterations";
465 return "usemeannormalization";
467 return "usespatialpropagation";
475 if (fieldnum.
size() < 1)
476 return PARM_UNSUPPORTED;
523 return PARM_UNSUPPORTED;
559 loadData(is, rampdata);
577 int typelen = colon - data.
buffer();
591 {
int64 iv =
v; UTwrite(os, &iv); }
593 { UTwrite<fpreal64>(os, &
v); }
595 { UTwrite<fpreal64>(os, &v.
x()); UTwrite<fpreal64>(os, &v.
y()); }
597 { UTwrite<fpreal64>(os, &v.
x()); UTwrite<fpreal64>(os, &v.
y());
598 UTwrite<fpreal64>(os, &v.
z()); }
600 { UTwrite<fpreal64>(os, &v.
x()); UTwrite<fpreal64>(os, &v.
y());
601 UTwrite<fpreal64>(os, &v.
z()); UTwrite<fpreal64>(os, &v.
w()); }
613 if (s) s->save(ostr);
615 saveData(os, result);
622 ostr << s->getDataTypeToken();
627 saveData(os, result);
631 void save(std::ostream &os)
const
635 saveData(os, mySourceGroup);
636 saveData(os, myGoalGroup);
637 saveData(os, myOutputName);
638 saveData(os, myMethod);
639 saveData(os, myBlurringWindowRadius);
640 saveData(os, myUseGaussianFilter);
641 saveData(os, myPyramidLevels);
642 saveData(os, myPyramidScale);
643 saveData(os, myIterations);
644 saveData(os, myApproximationWindowRadius);
645 saveData(os, mySmoothnessDegree);
646 saveData(os, myPatchSize);
647 saveData(os, myPatchStride);
648 saveData(os, myFinestScale);
649 saveData(os, myGradientDescentIterations);
650 saveData(os, mySmoothnessWeight);
651 saveData(os, myColorConstancyWeight);
652 saveData(os, myGradientConstancyWeight);
653 saveData(os, myVariationalRefinementIterations);
654 saveData(os, myUseMeanNormalization);
655 saveData(os, myUseSpatialPropagation);
668 loadData(is, mySourceGroup);
669 loadData(is, myGoalGroup);
670 loadData(is, myOutputName);
671 loadData(is, myMethod);
672 loadData(is, myBlurringWindowRadius);
673 loadData(is, myUseGaussianFilter);
674 loadData(is, myPyramidLevels);
675 loadData(is, myPyramidScale);
676 loadData(is, myIterations);
677 loadData(is, myApproximationWindowRadius);
678 loadData(is, mySmoothnessDegree);
679 loadData(is, myPatchSize);
680 loadData(is, myPatchStride);
681 loadData(is, myFinestScale);
682 loadData(is, myGradientDescentIterations);
683 loadData(is, mySmoothnessWeight);
684 loadData(is, myColorConstancyWeight);
685 loadData(is, myGradientConstancyWeight);
686 loadData(is, myVariationalRefinementIterations);
687 loadData(is, myUseMeanNormalization);
688 loadData(is, myUseSpatialPropagation);
698 if (!thissop)
return getSourceGroup();
700 OP_Utils::evalOpParm(result, thissop,
"sourcegroup", cookparms.
getCookTime(), 0);
708 if (!thissop)
return getGoalGroup();
710 OP_Utils::evalOpParm(result, thissop,
"goalgroup", cookparms.
getCookTime(), 0);
718 if (!thissop)
return getOutputName();
720 OP_Utils::evalOpParm(result, thissop,
"outputname", cookparms.
getCookTime(), 0);
728 if (!thissop)
return getMethod();
730 OP_Utils::evalOpParm(result, thissop,
"method", cookparms.
getCookTime(), 0);
738 if (!thissop)
return getBlurringWindowRadius();
740 OP_Utils::evalOpParm(result, thissop,
"blurringwindowradius", cookparms.
getCookTime(), 0);
748 if (!thissop)
return getUseGaussianFilter();
750 OP_Utils::evalOpParm(result, thissop,
"usegaussianfilter", cookparms.
getCookTime(), 0);
758 if (!thissop)
return getPyramidLevels();
760 OP_Utils::evalOpParm(result, thissop,
"pyramidlevels", cookparms.
getCookTime(), 0);
768 if (!thissop)
return getPyramidScale();
770 OP_Utils::evalOpParm(result, thissop,
"pyramidscale", cookparms.
getCookTime(), 0);
778 if (!thissop)
return getIterations();
780 OP_Utils::evalOpParm(result, thissop,
"iterations", cookparms.
getCookTime(), 0);
788 if (!thissop)
return getApproximationWindowRadius();
790 OP_Utils::evalOpParm(result, thissop,
"approximationwindowradius", cookparms.
getCookTime(), 0);
798 if (!thissop)
return getSmoothnessDegree();
800 OP_Utils::evalOpParm(result, thissop,
"smoothnessdegree", cookparms.
getCookTime(), 0);
808 if (!thissop)
return getPatchSize();
810 OP_Utils::evalOpParm(result, thissop,
"patchsize", cookparms.
getCookTime(), 0);
818 if (!thissop)
return getPatchStride();
820 OP_Utils::evalOpParm(result, thissop,
"patchstride", cookparms.
getCookTime(), 0);
828 if (!thissop)
return getFinestScale();
830 OP_Utils::evalOpParm(result, thissop,
"finestscale", cookparms.
getCookTime(), 0);
838 if (!thissop)
return getGradientDescentIterations();
840 OP_Utils::evalOpParm(result, thissop,
"gradientdescentiterations", cookparms.
getCookTime(), 0);
848 if (!thissop)
return getSmoothnessWeight();
850 OP_Utils::evalOpParm(result, thissop,
"smoothnessweight", cookparms.
getCookTime(), 0);
858 if (!thissop)
return getColorConstancyWeight();
860 OP_Utils::evalOpParm(result, thissop,
"colorconstancyweight", cookparms.
getCookTime(), 0);
868 if (!thissop)
return getGradientConstancyWeight();
870 OP_Utils::evalOpParm(result, thissop,
"gradientconstancyweight", cookparms.
getCookTime(), 0);
878 if (!thissop)
return getVariationalRefinementIterations();
880 OP_Utils::evalOpParm(result, thissop,
"variationalrefinementiterations", cookparms.
getCookTime(), 0);
888 if (!thissop)
return getUseMeanNormalization();
890 OP_Utils::evalOpParm(result, thissop,
"usemeannormalization", cookparms.
getCookTime(), 0);
898 if (!thissop)
return getUseSpatialPropagation();
900 OP_Utils::evalOpParm(result, thissop,
"usespatialpropagation", cookparms.
getCookTime(), 0);
909 int64 myBlurringWindowRadius;
910 bool myUseGaussianFilter;
911 int64 myPyramidLevels;
914 fpreal64 myApproximationWindowRadius;
915 int64 mySmoothnessDegree;
919 int64 myGradientDescentIterations;
923 int64 myVariationalRefinementIterations;
924 bool myUseMeanNormalization;
925 bool myUseSpatialPropagation;
int64 getPatchStride() const
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector4D &value) override
int64 getSmoothnessDegree() const
void getNestParmValue(TempIndex idx, TempIndex instance, UT_SharedPtr< UT_Ramp > &value) const override
bool load(UT_IStream &is)
void save(std::ostream &os) const
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix3D &value) override
static void loadData(UT_IStream &is, UT_Vector2D &v)
SOP_Node * getNode() const
void setNestParmValue(TempIndex idx, TempIndex instance, const exint &value) override
UT_StringHolder opSourceGroup(const SOP_NodeVerb::CookParms &cookparms) const
fpreal64 opGradientConstancyWeight(const SOP_NodeVerb::CookParms &cookparms) const
static void loadData(UT_IStream &is, UT_Vector4I &v)
void getNestParmValue(TempIndex idx, TempIndex instance, UT_StringHolder &value) const override
const UT_StringHolder & getGoalGroup() const
void setBlurringWindowRadius(int64 val)
static void saveData(std::ostream &os, UT_Matrix2D v)
void setMethod(Method val)
exint bread(int32 *buffer, exint asize=1)
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix2D &value) const override
GT_API const UT_StringHolder time
constexpr SYS_FORCE_INLINE T & y() noexcept
void getNestParmValue(TempIndex idx, TempIndex instance, exint &value) const override
const OP_Context & context() const
constexpr SYS_FORCE_INLINE T & z() noexcept
void setFinestScale(int64 val)
SYS_FORCE_INLINE const char * buffer() const
static void loadData(UT_IStream &is, PRM_DataItemHandle &v)
int64 opVariationalRefinementIterations(const SOP_NodeVerb::CookParms &cookparms) const
void setNestParmValue(TempIndex idx, TempIndex instance, const PRM_DataItemHandle &value) override
static void loadData(UT_IStream &is, UT_StringHolder &v)
An output stream object that owns its own string buffer storage.
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix4D &value) override
static void loadData(UT_IStream &is, UT_Vector3D &v)
static void saveData(std::ostream &os, UT_SharedPtr< UT_Ramp > s)
**But if you need a result
void setGradientConstancyWeight(fpreal64 val)
UT_StringHolder opOutputName(const SOP_NodeVerb::CookParms &cookparms) const
static PRM_DataItemHandle parseBinary(const char *type, UT_IStream &is)
const UT_WorkBuffer & str()
Returns a read-only reference to the underlying UT_WorkBuffer.
static void saveData(std::ostream &os, fpreal64 v)
UT_StringHolder opGoalGroup(const SOP_NodeVerb::CookParms &cookparms) const
void copyFrom(const OP_NodeParms *src) override
SYS_FORCE_INLINE UT_StringHolder getToken(Method enum_value)
constexpr SYS_FORCE_INLINE T & x() noexcept
int64 getFinestScale() const
fpreal64 getPyramidScale() const
fpreal64 getColorConstancyWeight() const
static void loadData(UT_IStream &is, UT_Vector4D &v)
constexpr SYS_FORCE_INLINE T & x() noexcept
int64 opGradientDescentIterations(const SOP_NodeVerb::CookParms &cookparms) const
int64 opPatchSize(const SOP_NodeVerb::CookParms &cookparms) const
int64 opPyramidLevels(const SOP_NodeVerb::CookParms &cookparms) const
bool opUseMeanNormalization(const SOP_NodeVerb::CookParms &cookparms) const
bool operator==(const BaseDimensions< T > &a, const BaseDimensions< Y > &b)
int64 getPyramidLevels() const
static void saveData(std::ostream &os, UT_Matrix4D v)
int64 getBlurringWindowRadius() const
static void saveData(std::ostream &os, UT_Vector2D v)
bool operator!=(const SOP_TextureOpticalFlowParms &src) const
void setGradientDescentIterations(int64 val)
bool getUseGaussianFilter() const
fpreal64 opColorConstancyWeight(const SOP_NodeVerb::CookParms &cookparms) const
void setVariationalRefinementIterations(int64 val)
SYS_FORCE_INLINE const char * buffer() const
std::shared_ptr< T > UT_SharedPtr
Wrapper around std::shared_ptr.
static void loadData(UT_IStream &is, UT_Vector3I &v)
constexpr SYS_FORCE_INLINE T & z() noexcept
void setGoalGroup(const UT_StringHolder &val)
static void saveData(std::ostream &os, PRM_DataItemHandle s)
static void saveData(std::ostream &os, UT_StringHolder s)
bool getUseSpatialPropagation() const
const OP_GraphProxy * graph() const
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix3D &value) const override
int64 opSmoothnessDegree(const SOP_NodeVerb::CookParms &cookparms) const
static void saveData(std::ostream &os, UT_Vector3D v)
int64 getPatchSize() const
static void loadData(UT_IStream &is, fpreal64 &v)
void setUseSpatialPropagation(bool val)
int64 opPatchStride(const SOP_NodeVerb::CookParms &cookparms) const
fpreal64 opSmoothnessWeight(const SOP_NodeVerb::CookParms &cookparms) const
void setSourceGroup(const UT_StringHolder &val)
virtual void evalOpParm(int64 &v, NodeIdx node, const char *parmname, fpreal time, DEP_MicroNode *depnode) const =0
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector4D &value) const override
static void saveData(std::ostream &os, UT_Vector4D v)
void setColorConstancyWeight(fpreal64 val)
bool getUseMeanNormalization() const
void setIterations(int64 val)
void saveBinary(std::ostream &os) const
Save string to binary stream.
void doSetParmValue(TempIndex idx, TempIndex instance, const T &value)
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector3D &value) const override
fpreal64 getSmoothnessWeight() const
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_SharedPtr< UT_Ramp > &value) override
GT_API const UT_StringHolder version
static void saveData(std::ostream &os, int64 v)
int64 getIterations() const
SOP_TextureOpticalFlowParms()
static void saveData(std::ostream &os, bool v)
int64 opBlurringWindowRadius(const SOP_NodeVerb::CookParms &cookparms) const
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix4D &value) const override
void getNestParmValue(TempIndex idx, TempIndex instance, fpreal &value) const override
static void loadData(UT_IStream &is, int64 &v)
bool opUseSpatialPropagation(const SOP_NodeVerb::CookParms &cookparms) const
const char * getNestParmName(TempIndex fieldnum) const override
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix2D &value) override
void setPatchSize(int64 val)
void setPyramidScale(fpreal64 val)
static void loadData(UT_IStream &is, UT_Vector2I &v)
static void loadData(UT_IStream &is, UT_Matrix2D &v)
void setSmoothnessWeight(fpreal64 val)
static void loadData(UT_IStream &is, bool &v)
const UT_StringHolder & getSourceGroup() const
DEP_MicroNode * depnode() const
LeafData & operator=(const LeafData &)=delete
void setPatchStride(int64 val)
Utility class for containing a color ramp.
fpreal64 opPyramidScale(const SOP_NodeVerb::CookParms &cookparms) const
int64 opIterations(const SOP_NodeVerb::CookParms &cookparms) const
constexpr SYS_FORCE_INLINE T & w() noexcept
int64 getGradientDescentIterations() const
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_StringHolder &value) override
void getNestParmValue(TempIndex idx, TempIndex instance, PRM_DataItemHandle &value) const override
void setOutputName(const UT_StringHolder &val)
fpreal getCookTime() const
static void loadData(UT_IStream &is, UT_Matrix3D &v)
bool isParmColorRamp(exint idx) const override
void setUseMeanNormalization(bool val)
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector2D &value) override
const char * findChar(int c) const
void doGetParmValue(TempIndex idx, TempIndex instance, T &value) const
fpreal64 getApproximationWindowRadius() const
bool opUseGaussianFilter(const SOP_NodeVerb::CookParms &cookparms) const
void setNestParmValue(TempIndex idx, TempIndex instance, const fpreal &value) override
void loadFromOpSubclass(const LoadParms &loadparms) override
static void loadData(UT_IStream &is, UT_SharedPtr< UT_Ramp > &v)
static void loadData(UT_IStream &is, UT_Matrix4D &v)
void setSmoothnessDegree(int64 val)
fpreal64 getGradientConstancyWeight() const
const UT_StringHolder & getOutputName() const
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector3D &value) override
int64 getVariationalRefinementIterations() const
constexpr SYS_FORCE_INLINE T & y() noexcept
fpreal64 opApproximationWindowRadius(const SOP_NodeVerb::CookParms &cookparms) const
void setUseGaussianFilter(bool val)
exint getNestNumParms(TempIndex idx) const override
void buildFromOp(const OP_GraphProxy *graph, exint nodeidx, fpreal time, DEP_MicroNode *depnode)
Method opMethod(const SOP_NodeVerb::CookParms &cookparms) const
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector2D &value) const override
UT_SharedPtr< const PRM_DataItem > PRM_DataItemHandle
static void saveData(std::ostream &os, UT_Matrix3D v)
constexpr SYS_FORCE_INLINE T & y() noexcept
SYS_FORCE_INLINE bool isstring() const
void setApproximationWindowRadius(fpreal64 val)
SYS_FORCE_INLINE void strncpy(const char *src, exint maxlen)
ParmType getNestParmType(TempIndex fieldnum) const override
int64 opFinestScale(const SOP_NodeVerb::CookParms &cookparms) const
bool operator==(const SOP_TextureOpticalFlowParms &src) const
constexpr SYS_FORCE_INLINE T & x() noexcept
void setPyramidLevels(int64 val)