80 PixelCoordinate
border = (
max -
min) * .8 + PixelCoordinate(2, 2);
91 return PixelRectangle(
min,
max);
123 for (
int y = 0;
y <
rect.getHeight();
y++) {
124 for (
int x = 0;
x <
rect.getWidth();
x++) {
127 if (saturation > 0 &&
pixel_val > saturation) {
128 weight->at(
x,
y) = 0;
130 else if (gain > 0.0 &&
pixel_val > 0.0) {
165 for (
auto model :
frame->getModels()) {
235 for (
size_t index = 0; index <
group.size(); index++){
370 for (
int y = 0;
y <
image->getHeight(); ++
y) {
371 for (
int x = 0;
x <
image->getWidth(); ++
x) {
379 for (
int y = 0;
y < weight->getHeight(); ++
y) {
380 for (
int x = 0;
x < weight->getWidth(); ++
x) {
437 parameters_fitted[
parameter->getId()] =
true;
441 parameters_fitted[
parameter->getId()] =
false;
453 state.
source_states[index].parameters_values = parameters_values;
454 state.
source_states[index].parameters_sigmas = parameters_sigmas;
455 state.
source_states[index].parameters_fitted = parameters_fitted;
460 state.
source_states[index].iterations_per_meta.emplace_back(iterations);
538 auto iterations =
solution.iteration_no;
539 auto stop_reason =
solution.engine_stop_reason;
612 double reduced_chi_squared = 0.0;
618 for (
int y=0;
y <
image->getHeight();
y++) {
619 for (
int x=0;
x <
image->getWidth();
x++) {
627 return reduced_chi_squared;
646 for (
int y = 0;
y <
image->getHeight(); ++
y) {
647 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.