|
Krita Source Code Documentation
|
#include <kis_math_toolbox.h>
Classes | |
| struct | KisFloatRepresentation |
Public Types | |
| typedef KisFloatRepresentation | KisWavelet |
Public Member Functions | |
| uint | fastWaveletTotalSteps (const QRect &) |
| KisWavelet * | fastWaveletTransformation (KisPaintDeviceSP src, const QRect &, KisWavelet *buff=0) |
| void | fastWaveletUntransformation (KisPaintDeviceSP dst, const QRect &, KisWavelet *wav, KisWavelet *buff=0) |
| bool | getFromDoubleChannelPtr (QList< KoChannelInfo * > cis, QVector< PtrFromDouble > &f) |
| bool | getFromDoubleCheckNullChannelPtr (QList< KoChannelInfo * > cis, QVector< PtrFromDoubleCheckNull > &f) |
| bool | getToDoubleChannelPtr (QList< KoChannelInfo * > cis, QVector< PtrToDouble > &f) |
| KisWavelet * | initWavelet (KisPaintDeviceSP lay, const QRect &) |
| double | maxChannelValue (KoChannelInfo *) |
| double | minChannelValue (KoChannelInfo *) |
Private Member Functions | |
| void | transformFromFR (KisPaintDeviceSP dst, KisFloatRepresentation *, const QRect &) |
| void | transformToFR (KisPaintDeviceSP src, KisFloatRepresentation *, const QRect &) |
| void | wavetrans (KisWavelet *wav, KisWavelet *buff, uint halfsize) |
| void | waveuntrans (KisWavelet *wav, KisWavelet *buff, uint halfsize) |
Definition at line 34 of file kis_math_toolbox.h.
Definition at line 60 of file kis_math_toolbox.h.
|
inline |
Definition at line 129 of file kis_math_toolbox.h.
| KisMathToolbox::KisWavelet * KisMathToolbox::fastWaveletTransformation | ( | KisPaintDeviceSP | src, |
| const QRect & | rect, | ||
| KisWavelet * | buff = 0 ) |
This function reconstruct the layer from the information of a wavelet
| src | layer from which the wavelet will be computed |
| rect | the rectangular for reconstruction |
| 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 |
Definition at line 328 of file kis_math_toolbox.cpp.
References initWavelet(), KisMathToolbox::KisFloatRepresentation::size, transformToFR(), and wavetrans().
| void KisMathToolbox::fastWaveletUntransformation | ( | KisPaintDeviceSP | dst, |
| const QRect & | rect, | ||
| KisWavelet * | wav, | ||
| KisWavelet * | buff = 0 ) |
This function reconstruct the layer from the information of a wavelet
| dst | layer on which the wavelet will be untransform |
| rect | the rectangular for reconstruction |
| 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 |
Definition at line 340 of file kis_math_toolbox.cpp.
References initWavelet(), transformFromFR(), and waveuntrans().
| bool KisMathToolbox::getFromDoubleChannelPtr | ( | QList< KoChannelInfo * > | cis, |
| QVector< PtrFromDouble > & | f ) |
Definition at line 153 of file kis_math_toolbox.cpp.
References KoChannelInfo::FLOAT16, KoChannelInfo::FLOAT32, KoChannelInfo::INT16, KoChannelInfo::INT8, KoChannelInfo::UINT16, KoChannelInfo::UINT8, and warnKrita.
| bool KisMathToolbox::getFromDoubleCheckNullChannelPtr | ( | QList< KoChannelInfo * > | cis, |
| QVector< PtrFromDoubleCheckNull > & | f ) |
Definition at line 188 of file kis_math_toolbox.cpp.
References KoChannelInfo::FLOAT16, KoChannelInfo::FLOAT32, KoChannelInfo::INT16, KoChannelInfo::INT8, KoChannelInfo::UINT16, KoChannelInfo::UINT8, and warnKrita.
| bool KisMathToolbox::getToDoubleChannelPtr | ( | QList< KoChannelInfo * > | cis, |
| QVector< PtrToDouble > & | f ) |
Definition at line 90 of file kis_math_toolbox.cpp.
References KoChannelInfo::FLOAT16, KoChannelInfo::FLOAT32, KoChannelInfo::INT16, KoChannelInfo::INT8, KoChannelInfo::UINT16, KoChannelInfo::UINT8, and warnKrita.
|
inline |
This function initializes a wavelet structure
| lay | the layer that will be used for the transformation |
| rect | the rectangular for transformation |
Definition at line 120 of file kis_math_toolbox.h.
| double KisMathToolbox::maxChannelValue | ( | KoChannelInfo * | c | ) |
Definition at line 241 of file kis_math_toolbox.cpp.
References KoChannelInfo::channelValueType(), KoChannelInfo::FLOAT16, KoChannelInfo::FLOAT32, KoChannelInfo::FLOAT64, KoChannelInfo::INT16, KoChannelInfo::INT8, KoChannelInfo::UINT16, KoChannelInfo::UINT32, and KoChannelInfo::UINT8.
| double KisMathToolbox::minChannelValue | ( | KoChannelInfo * | c | ) |
Definition at line 223 of file kis_math_toolbox.cpp.
References KoChannelInfo::channelValueType(), KoChannelInfo::FLOAT16, KoChannelInfo::FLOAT32, KoChannelInfo::FLOAT64, KoChannelInfo::INT16, KoChannelInfo::INT8, KoChannelInfo::UINT16, KoChannelInfo::UINT32, and KoChannelInfo::UINT8.
|
private |
This function transform a KisFloatRepresentation into a paint device, this function is colorspace independent, for Wavelet, Pyramid and FFT the data is always the exact value of the channel stored in a float.
Definition at line 125 of file kis_math_toolbox.cpp.
References KoColorSpace::channels, KisMathToolbox::KisFloatRepresentation::coeffs, KoChannelInfo::COLOR, KoColorSpace::colorChannelCount(), KisPaintDevice::colorSpace(), KisPaintDevice::createHLineIteratorNG(), KisMathToolbox::KisFloatRepresentation::depth, getFromDoubleChannelPtr(), and KisMathToolbox::KisFloatRepresentation::size.
|
private |
This function transform a paint device into a KisFloatRepresentation, this function is colorspace independent, for Wavelet, Pyramid and FFT the data is always the exact value of the channel stored in a float.
Definition at line 62 of file kis_math_toolbox.cpp.
References KisMathToolbox::KisFloatRepresentation::coeffs, KoChannelInfo::COLOR, KisMathToolbox::KisFloatRepresentation::depth, getToDoubleChannelPtr(), KisBaseConstIteratorNG::nextPixel(), KisHLineConstIteratorNG::nextRow(), KisBaseConstAccessor::oldRawData(), and KisMathToolbox::KisFloatRepresentation::size.
|
private |
Definition at line 259 of file kis_math_toolbox.cpp.
References KisMathToolbox::KisFloatRepresentation::coeffs, KisMathToolbox::KisFloatRepresentation::depth, p, KisMathToolbox::KisFloatRepresentation::size, and wavetrans().
|
private |
Definition at line 293 of file kis_math_toolbox.cpp.
References KisMathToolbox::KisFloatRepresentation::coeffs, KisMathToolbox::KisFloatRepresentation::depth, p, KisMathToolbox::KisFloatRepresentation::size, and waveuntrans().