|
Krita Source Code Documentation
|
Inheritance diagram for NearestNeighborField:Public Member Functions | |
| int | distance (int x, int y, int xp, int yp) |
| void | EM_Step (MaskedImageSP source, MaskedImageSP target, int R, bool upscaled) |
| void | initialize (const NearestNeighborField &nnf) |
| void | minimize (int pass) |
| void | minimizeLink (int x, int y, int dir) |
| NearestNeighborField (const MaskedImageSP _input, MaskedImageSP _output, int _patchsize) | |
| void | randomize (void) |
Public Member Functions inherited from KisShared | |
| bool | deref () |
| bool | ref () |
| int | refCount () |
| QAtomicInt * | sharedWeakReference () |
Static Public Member Functions | |
| static MaskedImageSP | ExpectationMaximization (KisSharedPtr< NearestNeighborField > TargetToSource, int level, int radius, QList< MaskedImageSP > &pyramid) |
| static void | ExpectationStep (KisSharedPtr< NearestNeighborField > nnf, MaskedImageSP source, MaskedImageSP target, bool upscale) |
Public Attributes | |
| QList< KoChannelInfo * > | channels |
| NNArray_type | field |
| QRect | imSize |
| MaskedImageSP | input |
| quint32 | nColors |
| MaskedImageSP | output |
| std::vector< float > | similarity |
Private Member Functions | |
| void | init_similarity_curve (void) |
| void | initialize (void) |
| template<typename T > | |
| T | randomInt (T range) |
Private Attributes | |
| int | patchSize |
Additional Inherited Members | |
Protected Member Functions inherited from KisShared | |
| KisShared () | |
| ~KisShared () | |
Definition at line 516 of file kis_inpaint.cpp.
|
inline |
Definition at line 574 of file kis_inpaint.cpp.
References MaskedImage::channelCount(), field, imSize, init_similarity_curve(), input, nColors, and MaskedImage::size().
|
inline |
Definition at line 686 of file kis_inpaint.cpp.
References distance(), MaskedImage::distance, input, MaskedImage::isMasked(), MAX_DIST, nColors, output, patchSize, and MaskedImage::size().
| void NearestNeighborField::EM_Step | ( | MaskedImageSP | source, |
| MaskedImageSP | target, | ||
| int | R, | ||
| bool | upscaled ) |
|
static |
Definition at line 830 of file kis_inpaint.cpp.
References ExpectationStep(), field, input, KisSharedPtr< T >::isNull(), minimize(), output, MaskedImage::size(), source(), target(), and MaskedImage::upscale().
|
static |
Definition at line 888 of file kis_inpaint.cpp.
References field, input, patchSize, R, similarity, MaskedImage::size(), source(), target(), and upscale.
Definition at line 545 of file kis_inpaint.cpp.
References MAX_DIST, and similarity.
|
inline |
Definition at line 596 of file kis_inpaint.cpp.
References field, imSize, initialize(), and MAX_DIST.
Definition at line 526 of file kis_inpaint.cpp.
References distance(), field, imSize, MAX_DIST, and randomInt().
|
inline |
Definition at line 615 of file kis_inpaint.cpp.
References distance(), field, imSize, and minimizeLink().
|
inline |
Definition at line 637 of file kis_inpaint.cpp.
References distance(), field, imSize, output, randomInt(), and MaskedImage::size().
|
inlineprivate |
Definition at line 520 of file kis_inpaint.cpp.
Definition at line 583 of file kis_inpaint.cpp.
References field, imSize, initialize(), MAX_DIST, and randomInt().
| QList<KoChannelInfo *> NearestNeighborField::channels |
Definition at line 571 of file kis_inpaint.cpp.
| NNArray_type NearestNeighborField::field |
Definition at line 568 of file kis_inpaint.cpp.
| QRect NearestNeighborField::imSize |
Definition at line 567 of file kis_inpaint.cpp.
| MaskedImageSP NearestNeighborField::input |
Definition at line 565 of file kis_inpaint.cpp.
| quint32 NearestNeighborField::nColors |
Definition at line 570 of file kis_inpaint.cpp.
| MaskedImageSP NearestNeighborField::output |
Definition at line 566 of file kis_inpaint.cpp.
|
private |
Definition at line 563 of file kis_inpaint.cpp.
| std::vector<float> NearestNeighborField::similarity |
Definition at line 569 of file kis_inpaint.cpp.