krita
KisMathToolbox Class Reference
Inheritance diagram for KisMathToolbox:

Detailed Description
Definition at line 34 of file kis_math_toolbox.h.
Public Types | |
| typedef KisFloatRepresentation | KisWavelet |
Signals | |
| void | nextStep () |
Public Member Functions | |
| KisMathToolbox (KisID id) | |
| ~KisMathToolbox () | |
| KisID | id () |
| KisWavelet * | initWavelet (KisPaintDeviceSP lay, const QRect &) throw (std::bad_alloc ) |
| uint | fastWaveletTotalSteps (const QRect &) |
| virtual KisWavelet * | fastWaveletTransformation (KisPaintDeviceSP src, const QRect &, KisWavelet *buff=0)=0 |
| virtual void | fastWaveletUntransformation (KisPaintDeviceSP dst, const QRect &, KisWavelet *wav, KisWavelet *buff=0)=0 |
Protected Member Functions | |
| void | transformToFR (KisPaintDeviceSP src, KisFloatRepresentation *, const QRect &) |
| void | transformFromFR (KisPaintDeviceSP dst, KisFloatRepresentation *, const QRect &) |
Classes | |
| struct | KisFloatRepresentation |
Member Function Documentation
| KisMathToolbox::KisWavelet * KisMathToolbox::initWavelet | ( | KisPaintDeviceSP | lay, | |
| const QRect & | ||||
| ) | throw (std::bad_alloc ) [inline] |
This function initialize a wavelet structure.
- Parameters:
-
lay the layer that will be used for the transformation
Definition at line 105 of file kis_math_toolbox.h.
| virtual KisWavelet* KisMathToolbox::fastWaveletTransformation | ( | KisPaintDeviceSP | src, | |
| const QRect & | , | |||
| KisWavelet * | buff = 0 | |||
| ) | [pure virtual] |
This function reconstruct the layer from the information of a wavelet.
- Parameters:
-
src layer from which the wavelet will be computed buff if set to 0, the buffer will be initialized by the function, you might want to give a buff to the function if you want to use the same buffer in transformToWavelet and in untransformToWavelet, use initWavelet to initialize the buffer
Implemented in KisBasicMathToolbox.
| virtual void KisMathToolbox::fastWaveletUntransformation | ( | KisPaintDeviceSP | dst, | |
| const QRect & | , | |||
| KisWavelet * | wav, | |||
| KisWavelet * | buff = 0 | |||
| ) | [pure virtual] |
This function reconstruct the layer from the information of a wavelet.
- Parameters:
-
dst layer on which the wavelet will be untransform wav the wavelet buff if set to 0, the buffer will be initialized by the function, you might want to give a buff to the function if you want to use the same buffer in transformToWavelet and in untransformToWavelet, use initWavelet to initialize the buffer
Implemented in KisBasicMathToolbox.
| void KisMathToolbox::transformToFR | ( | KisPaintDeviceSP | src, | |
| KisFloatRepresentation * | , | |||
| const QRect & | ||||
| ) | [protected] |
This function transform a paint device into a KisFloatRepresentation, this function is colorspace independant, for Wavelet, Pyramid and FFT the data is allways the exact value of the channel stored in a float.
Definition at line 63 of file kis_math_toolbox.cpp.
| void KisMathToolbox::transformFromFR | ( | KisPaintDeviceSP | dst, | |
| KisFloatRepresentation * | , | |||
| const QRect & | ||||
| ) | [protected] |
This function transform a KisFloatRepresentation into a paint device, this function is colorspace independant, for Wavelet, Pyramid and FFT the data is allways the exact value of the channel stored in a float.
Definition at line 115 of file kis_math_toolbox.cpp.
The documentation for this class was generated from the following files:

