Currently, predict does not resize the flatfield/darkfield images and will throw an error if input images are not the working_size.
What should happen is the input image size should be compared to the basic.flatfield array, and then basic.flatfield should be stored as basic._flatfield. Subsequent predict calls should check the inputs images against basic._flatfield and basic.flatfield, and if neither matches then resize basic.flatfield and store it in basic._flatfield. The same applies to basic.darkfield.
There are other ways to do this, but the main goal in this approach is to always keep the original, unmodified flatfield and darkfield data. The original flatfield and darkfield data are what should be saved/loaded from disk.
Currently,
predict
does not resize the flatfield/darkfield images and will throw an error if input images are not theworking_size
.What should happen is the input image size should be compared to the
basic.flatfield
array, and thenbasic.flatfield
should be stored asbasic._flatfield
. Subsequentpredict
calls should check the inputs images againstbasic._flatfield
andbasic.flatfield
, and if neither matches then resizebasic.flatfield
and store it inbasic._flatfield
. The same applies tobasic.darkfield
.There are other ways to do this, but the main goal in this approach is to always keep the original, unmodified
flatfield
anddarkfield
data. The originalflatfield
anddarkfield
data are what should be saved/loaded from disk.