Skip to content

Commit ee6b99b

Browse files
committed
analysis
Signed-off-by: Anton Dukhovnikov <antond@wetafx.co.nz>
1 parent 3e1bac8 commit ee6b99b

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

include/rawtoaces/rawtoaces_core.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ class SpectralSolver
170170
std::vector<SpectralData> _all_illuminants;
171171

172172
std::vector<double> _wb_multipliers;
173-
std::vector<std::vector<double>> _IDT_matrix;
173+
std::vector<std::vector<double>> _idt_matrix;
174174
};
175175

176176
/// DNG metadata required to calculate an input transform.

src/rawtoaces_core/rawtoaces_core.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -163,15 +163,15 @@ SpectralSolver::SpectralSolver(
163163
: _search_directories( search_directories )
164164
{
165165
verbosity = 0;
166-
_IDT_matrix.resize( 3 );
166+
_idt_matrix.resize( 3 );
167167
_wb_multipliers.resize( 3 );
168168
for ( int i = 0; i < 3; i++ )
169169
{
170-
_IDT_matrix[i].resize( 3 );
170+
_idt_matrix[i].resize( 3 );
171171
_wb_multipliers[i] = 1.0;
172172
for ( size_t j = 0; j < 3; j++ )
173173
{
174-
_IDT_matrix[i][j] = neutral3[i][j];
174+
_idt_matrix[i][j] = neutral3[i][j];
175175
}
176176
}
177177
}
@@ -744,7 +744,7 @@ bool SpectralSolver::calculate_IDT_matrix()
744744
auto RGB = calculate_RGB( camera, _wb_multipliers, TI );
745745
auto XYZ = calculate_XYZ( observer, illuminant, TI );
746746

747-
return curveFit( RGB, XYZ, beta_params_start, verbosity, _IDT_matrix );
747+
return curveFit( RGB, XYZ, beta_params_start, verbosity, _idt_matrix );
748748
}
749749

750750
// =====================================================================
@@ -758,7 +758,7 @@ bool SpectralSolver::calculate_IDT_matrix()
758758

759759
const vector<vector<double>> &SpectralSolver::get_IDT_matrix() const
760760
{
761-
return _IDT_matrix;
761+
return _idt_matrix;
762762
}
763763

764764
const vector<double> &SpectralSolver::get_WB_multipliers() const
@@ -984,7 +984,7 @@ vector<double> find_XYZ_to_camera_matrix(
984984
last_error = 0.0, smallest_error = 0.0;
985985

986986
double current_mired = low_mired;
987-
while( current_mired < high_mired )
987+
while ( current_mired < high_mired )
988988
{
989989
current_error =
990990
current_mired -

src/rawtoaces_core/spectral_data.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ void Spectrum::reshape()
8888

8989
std::vector<double> temp;
9090
size_t src = 0;
91-
91+
9292
double wl_src_first = static_cast<double>( shape.first );
9393
double wl_src_step = static_cast<double>( shape.step );
9494

0 commit comments

Comments
 (0)