|
|
Home | Main Page | Topics | Namespace List | Class Hierarchy | Alphabetical List | Data Structures | File List | Namespace Members | Data Fields | Globals | Related Pages |
#include <ImpactLoss.h>
Abstract base class for losses operating on extracted feature maps.
Stores the accumulated loss value and its derivative, and provides methods for updating them. Designed to support both:
Subclasses must implement:
Definition at line 60 of file ImpactLoss.h.
Public Member Functions | |
| virtual torch::Tensor | GetDerivative (double N) const |
| virtual double | GetValue (double N) const |
| virtual void | initialize (torch::Tensor &output) |
| Loss (bool isLossNormalized) | |
| virtual Loss & | operator+= (const Loss &other) |
| void | reset () |
| void | setNumberOfParameters (int numberOfParameters) |
| void | updateDerivativeInJacobianMode (torch::Tensor &jacobian, torch::Tensor &nonZeroJacobianIndices) |
| virtual void | updateValue (torch::Tensor &fixedOutput, torch::Tensor &movingOutput)=0 |
| virtual void | updateValueAndDerivativeInStaticMode (torch::Tensor &fixedOutput, torch::Tensor &movingOutput, torch::Tensor &jacobian, torch::Tensor &nonZeroJacobianIndices) |
| virtual torch::Tensor | updateValueAndGetGradientModulator (torch::Tensor &fixedOutput, torch::Tensor &movingOutput)=0 |
| virtual | ~Loss ()=default |
Protected Attributes | |
| torch::Tensor | m_Derivative |
| bool | m_Initialized = false |
| int | m_NumberOfParameters |
| double | m_Value |
Private Attributes | |
| double | m_Normalization = 0 |
|
inline |
Definition at line 72 of file ImpactLoss.h.
|
virtualdefault |
|
inlinevirtual |
Reimplemented in ImpactLoss::NCC.
Definition at line 135 of file ImpactLoss.h.
Reimplemented in ImpactLoss::NCC.
Definition at line 125 of file ImpactLoss.h.
|
inlinevirtual |
Reimplemented in ImpactLoss::NCC.
Definition at line 92 of file ImpactLoss.h.
Reimplemented in ImpactLoss::NCC.
Definition at line 143 of file ImpactLoss.h.
|
inline |
Definition at line 86 of file ImpactLoss.h.
|
inline |
Definition at line 81 of file ImpactLoss.h.
|
inline |
Definition at line 119 of file ImpactLoss.h.
|
pure virtual |
Implemented in ImpactLoss::Cosine, ImpactLoss::Dice, ImpactLoss::DotProduct, ImpactLoss::L1, ImpactLoss::L1Cosine, ImpactLoss::L2, and ImpactLoss::NCC.
|
inlinevirtual |
Reimplemented in ImpactLoss::NCC.
Definition at line 106 of file ImpactLoss.h.
|
pure virtual |
Implemented in ImpactLoss::Cosine, ImpactLoss::Dice, ImpactLoss::DotProduct, ImpactLoss::L1, ImpactLoss::L1Cosine, ImpactLoss::L2, and ImpactLoss::NCC.
|
protected |
Definition at line 67 of file ImpactLoss.h.
|
protected |
Definition at line 68 of file ImpactLoss.h.
|
mutableprivate |
Definition at line 63 of file ImpactLoss.h.
|
protected |
Definition at line 69 of file ImpactLoss.h.
|
protected |
Definition at line 66 of file ImpactLoss.h.
Generated on 1774142652 for elastix by 1.15.0 |