Currently, the demos provided at instantiation of TpsRpmRegistrationFactory, TpsRpmBijRegistrationFactory are merely used to iterate over for batch_register and batch_cost. However, the intended behavior is for the RegistrationFactory to only allow to do register and cost with one of the demos provided at instantiation.
Once this behavior is implemented, the RegistrationFactory should do all necessary pre-computation at instantiation for efficiency reasons (i.e. the SolverFactory should create a Solver at this point instead of every time tps_rpm or tps_rpm_bij is called).
Currently, the demos provided at instantiation of
TpsRpmRegistrationFactory,TpsRpmBijRegistrationFactoryare merely used to iterate over forbatch_registerandbatch_cost. However, the intended behavior is for theRegistrationFactoryto only allow to doregisterandcostwith one of the demos provided at instantiation.Once this behavior is implemented, the
RegistrationFactoryshould do all necessary pre-computation at instantiation for efficiency reasons (i.e. theSolverFactoryshould create aSolverat this point instead of every timetps_rpmortps_rpm_bijis called).