Hi everybody,<br>
<br>
I want to create a neighborhood operator which inherits of
&quot;NeighborhoodOperator&quot; class. My operator will weight each pixels of a
NDimensional neighborhood through a kind of inner product (the output
of this inner product will be a neighborhood with weighted pixels). So
my operator performs on all the neighborhood (and not in a particular
direction) and its size is equal to the neighborhood size.<br>
<br>
So, my operator is not directional. In this case and if I understand well the documentation, I have to implement two methods:<br>
1. GenerateScalarCoefficients<br>
2. ScalarFill<br>
<br>
So, I don't need to implement the &quot;GenerateCoefficients&quot; and &quot;Fill&quot;
methods (for directional operators) like in GaussianOperator or in
DerivativeOperator.<br>
<br>
But, I don't know how to create the &quot;GenerateScalarCoefficients&quot; and
&quot;ScalarFill&quot; methods. What do they have in input arguments? What do
they return? Do they have to call a particular method inherited from
NeighborhoodOperator??<br>
<br>
I think that &quot;GenerateScalarCoefficient&quot; method is similar to
&quot;GenerateCoefficients&quot; method. It takes no input argument and return a
&quot;CoefficientVector&quot; with the desired coefficients. <br>
But I have no ideas of how to implement the &quot;ScalarFill&quot; method.<br>
<br>
Does someone know about it? Or does anybody know where I can find an exemple of an non-directional neighborhood operator??<br>
<br>
Thanks,<br>
Cheers,<br>
<br>
Franz<br>