82 PixelCoordinate
border = (
max -
min) * .8 + PixelCoordinate(2, 2);
93 return PixelRectangle(
min,
max);
125 for (
int y = 0;
y <
rect.getHeight();
y++) {
126 for (
int x = 0;
x <
rect.getWidth();
x++) {
129 if (saturation > 0 &&
pixel_val > saturation) {
130 weight->at(
x,
y) = 0;
132 else if (gain > 0.0 &&
pixel_val > 0.0) {
168 for (
auto model :
frame->getModels()) {
240 for (
size_t index = 0; index <
group.size(); index++){
377 for (
int y = 0;
y <
image->getHeight(); ++
y) {
378 for (
int x = 0;
x <
image->getWidth(); ++
x) {
386 for (
int y = 0;
y < weight->getHeight(); ++
y) {
387 for (
int x = 0;
x < weight->getWidth(); ++
x) {
444 parameters_fitted[
parameter->getId()] =
true;
448 parameters_fitted[
parameter->getId()] =
false;
460 state.
source_states[index].parameters_values = parameters_values;
461 state.
source_states[index].parameters_sigmas = parameters_sigmas;
462 state.
source_states[index].parameters_fitted = parameters_fitted;
467 state.
source_states[index].iterations_per_meta.emplace_back(iterations);
545 auto iterations =
solution.iteration_no;
546 auto stop_reason =
solution.engine_stop_reason;
620 double reduced_chi_squared = 0.0;
626 for (
int y=0;
y <
image->getHeight();
y++) {
627 for (
int x=0;
x <
image->getWidth();
x++) {
635 return reduced_chi_squared;
654 for (
int y = 0;
y <
image->getHeight(); ++
y) {
655 for (
int x = 0;
x <
image->getWidth(); ++
x) {
std::shared_ptr< DependentParameter< std::shared_ptr< EngineParameter > > > x
std::shared_ptr< DependentParameter< std::shared_ptr< EngineParameter > > > y
static Logging getLogger(const std::string &name="")
void warn(const std::string &logMessage)
Data vs model comparator which computes a modified residual, using asinh.
Class responsible for managing the parameters the least square engine minimizes.
static std::shared_ptr< LeastSquareEngine > create(const std::string &name, unsigned max_iterations=1000)
Provides to the LeastSquareEngine the residual values.
static Elements::Logging logger
std::unique_ptr< DataVsModelResiduals< typename std::remove_reference< DataType >::type, typename std::remove_reference< ModelType >::type, typename std::remove_reference< WeightType >::type, typename std::remove_reference< Comparator >::type > > createDataVsModelResiduals(DataType &&data, ModelType &&model, WeightType &&weight, Comparator &&comparator)
Class containing the summary information of solving a least square minimization problem.