MCPcopy Create free account
hub / github.com/ImageEngine/cortex / WarpOp

Method WarpOp

src/IECoreImage/WarpOp.cpp:52–85  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

50IE_CORE_DEFINERUNTIMETYPED( WarpOp );
51
52WarpOp::WarpOp( const std::string &description )
53 : ModifyOp( description, new ImagePrimitiveParameter( "result", "The result", new ImagePrimitive() ), new ImagePrimitiveParameter( "input", "The image to modify", new ImagePrimitive() ) )
54{
55 IntParameter::PresetsContainer filterPresets;
56 filterPresets.push_back( IntParameter::Preset( "None", WarpOp::None ) );
57 filterPresets.push_back( IntParameter::Preset( "Bilinear", WarpOp::Bilinear ) );
58 m_filterParameter = new IntParameter(
59 "filter",
60 "Defines the filter to be used on the warped coordinates.",
61 WarpOp::Bilinear,
62 WarpOp::None,
63 WarpOp::Bilinear,
64 filterPresets,
65 true
66 );
67
68 parameters()->addParameter( m_filterParameter );
69
70 IntParameter::PresetsContainer boundModePresets;
71 boundModePresets.push_back( IntParameter::Preset( "Clamp", WarpOp::Clamp ) );
72 boundModePresets.push_back( IntParameter::Preset( "SetToBlack", WarpOp::SetToBlack ) );
73 m_boundModeParameter = new IntParameter(
74 "boundMode",
75 "Defines how the Op handles pixel requests for pixels outside of the input image.",
76 WarpOp::Clamp,
77 WarpOp::Clamp,
78 WarpOp::SetToBlack,
79 boundModePresets,
80 true
81 );
82
83 parameters()->addParameter( m_boundModeParameter );
84
85}
86
87WarpOp::~WarpOp()
88{

Callers

nothing calls this directly

Calls 2

PresetClass · 0.85
addParameterMethod · 0.45

Tested by

no test coverage detected