Isis 3 Programmer Reference
NoNormalization.cpp
1 
6 /* SPDX-License-Identifier: CC0-1.0 */
7 #include <cmath>
8 #include "NoNormalization.h"
9 #include "SpecialPixel.h"
10 #include "IException.h"
11 
12 namespace Isis {
13  NoNormalization::NoNormalization(Pvl &pvl, PhotoModel &pmodel) :
14  NormModel(pvl, pmodel) {
15  }
16 
17  void NoNormalization::NormModelAlgorithm(double phase, double incidence, double emission,
18  double demincidence, double dememission, double dn, double &albedo, double &mult,
19  double &base) {
20  // apply the photometric correction
21  albedo = GetPhotoModel()->CalcSurfAlbedo(phase, demincidence, dememission);
22  }
23 }
24 
25 extern "C" Isis::NormModel *NoNormalizationPlugin(Isis::Pvl &pvl, Isis::PhotoModel &pmodel) {
26  return new Isis::NoNormalization(pvl, pmodel);
27 }
Isis::PhotoModel
Definition: PhotoModel.h:41
Isis::PhotoModel::CalcSurfAlbedo
double CalcSurfAlbedo(double pha, double inc, double ema)
Calculate the surface brightness using photometric angle information.
Definition: PhotoModel.cpp:177
Isis::Pvl
Container for cube-like labels.
Definition: Pvl.h:119
Isis::NoNormalization
NoNormalization - perform simple correction without normalization (a*dn +b)
Definition: NoNormalization.h:32
Isis::NormModel
Definition: NormModel.h:36
Isis
This is free and unencumbered software released into the public domain.
Definition: Apollo.h:16