I am trying to use CERES for an imaging problem. The unknowns are arranged in a 1024x1024 image. The energy function is defined on each non-boundary pixel on a 5x5 grid.
I initially thought to model the problem where the energy function factory takes 5 parameter blocks corresponding to the five needed scanlines, i.e., U(-2, -2), U(-2, -1), U(-2, 0), U(-2, 1), U(-2, 2), where U is the unknown grid, the value inside the parens is the offset into U, and each parameter block runs for 5 pixels.
This produces aliasing in the parameter blocks however, which is apparently not allowed.
I could instead pass things in as 25 parameter blocks for each needed pixel, but I am guessing this is not expected (although will probably be my fallback).
I briefly looked at the idea of passing in the whole image as a single parameter block, but CERES was not able to handle this well.
What is the expected way to model these types of imaging problems in CERES?
Thanks,
--Matt