Skip to content
Permalink
Browse files

More updates for opencl

  • Loading branch information
elpaso committed Aug 8, 2018
1 parent 7404263 commit 9068fe46d88e00bc1cc0b354a775017f6cbd9a1c
@@ -29,6 +29,9 @@ Calculates output value from nine input values. The input values and the output
nodata value if not present or outside of the border. Must be implemented by subclasses*
%End




};

/************************************************************************
@@ -10,6 +10,7 @@




class QgsNineCellFilter
{
%Docstring
@@ -34,7 +35,8 @@ Starts the calculation, reads from mInputFile and stores the result in mOutputFi

:param feedback: feedback object that receives update and that is checked for cancelation.

:return: 0 in case of success*
:return: 0 in case of success
TODO: return an enum
%End

double cellSizeX() const;
@@ -28,6 +28,7 @@ Calculates slope values in a window of 3x3 cells based on first order derivative
Calculates output value from nine input values. The input values and the output value can be equal to the
nodata value if not present or outside of the border. Must be implemented by subclasses*
%End

};

/************************************************************************
@@ -36,6 +36,15 @@ class ANALYSIS_EXPORT QgsAspectFilter: public QgsDerivativeFilter
float *x12, float *x22, float *x32,
float *x13, float *x23, float *x33 ) override;




// QgsNineCellFilter interface
private:
const QString openClProgramBaseName() const override
{
return QStringLiteral( "aspect" );
}
};

#endif // QGSASPECTFILTER_H
@@ -46,6 +46,7 @@ class ANALYSIS_EXPORT QgsHillshadeFilter: public QgsDerivativeFilter
private:
float mLightAzimuth;
float mLightAngle;

};

#endif // QGSHILLSHADEFILTER_H

0 comments on commit 9068fe4

Please sign in to comment.
You can’t perform that action at this time.