Description
imageevaluator provides a set of simple tools for evaluating
the quality of a simulated image. Some functions, such as
dynamicrange, need no truth image and can be run on images
made from real data. Other functions, such as fidelity,
require a truth image and can be used to compare a reconstructed
image to the model from which the data were simulated.
Example
The following example shows one way to use the
imageevaluator
tool:
include 'imageevaluator.g'
#
# construct an imageevaluator tool
#
ime := imageevaluator('TEST.IMAGE');
#
# make a region which contains off-source pixels
#
r := drm.box(blc="1 1 1", trc="30 30 1")
#
# calculate dynamic range
#
ime.dynamicrange(r);
#
# calculate image fidelity, ignoring truth pixels below 0.01
#
truthmin := 0.01;
ime.fidelity('TRUTH.IMAGE', truthmin);
#
ime.done();
#