eval_model_multi_warp
PURPOSE ![^](../../up.png)
==============================================================
SYNOPSIS ![^](../../up.png)
function [score, warped_points] = eval_model_multi_warp(knot_displacements, init_knots, unwarped_image_vec, unwarped_points_vec, image_set, points_set, n_modes, start_points_vec, warp_params, model_evaluation_method, weighting_normalisation_method, shape_weight, variation_kept, show_warps_while_optimising)
DESCRIPTION ![^](../../up.png)
CROSS-REFERENCE INFORMATION ![^](../../up.png)
This function calls:
This function is called by:
SOURCE CODE ![^](../../up.png)
0001 function [score, warped_points] = eval_model_multi_warp(knot_displacements, init_knots, unwarped_image_vec, unwarped_points_vec, image_set, points_set, n_modes, start_points_vec, warp_params, model_evaluation_method, weighting_normalisation_method, shape_weight, variation_kept, show_warps_while_optimising)
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017
0018
0019
0020
0021
0022
0023
0024
0025
0026
0027
0028
0029
0030
0031
0032
0033
0034
0035
0036
0037
0038
0039
0040
0041
0042
0043
0044
0045
0046
0047
0048
0049
0050 warped_points = nrr_trans_1d(start_points_vec, init_knots, init_knots + knot_displacements, warp_params, []);
0051
0052 if (show_warps_while_optimising == 1),
0053 figure(40);
0054 plot(warped_points);
0055 axis([0 size(unwarped_image_vec,1) -1 1]);
0056 end
0057
0058 warped_image = interp1(unwarped_points_vec,unwarped_image_vec,warped_points, 'linear',0);
0059 image_set(:,size(image_set,2)+1) = warped_image;
0060 points_set(:,size(points_set,2)+1) = warped_points;
0061
0062 c_model = build_model(image_set, points_set, variation_kept, '', weighting_normalisation_method, shape_weight);
0063 score = measure_model(c_model.variances, n_modes, model_evaluation_method, c_model);
Generated on Thu 13-May-2004 18:00:46 by m2html © 2003