eval_groupwise_single_point
PURPOSE ![^](../../up.png)
==============================================================
SYNOPSIS ![^](../../up.png)
function [score, warped_points] = eval_groupwise_single_point (params, warp_centre, r, unwarped_image_vec, unwarped_points_vec, image_set, points_set, n_modes, start_points_vec, model_evaluation_method, weighting_normalisation_method, shape_weight, variation_kept, pdf_evaluation_method, kernel)
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_groupwise_single_point (params, warp_centre, r, unwarped_image_vec, unwarped_points_vec, image_set, points_set, n_modes, start_points_vec, model_evaluation_method, weighting_normalisation_method, shape_weight, variation_kept, pdf_evaluation_method, kernel)
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 start_points = unwarped_points_vec;
0049 max_d = 0.67;
0050
0051 if (any((abs(params) > max_d)) | any(warp_centre-r <-1) | any(warp_centre+r > 1))
0052 score = realmax;
0053 warped_points = unwarped_points_vec;
0054 else
0055 for i=1:size(params,2)
0056 warped_points = cps_warp_1d(start_points_vec,warp_centre(i),r(i),params(i));
0057 start_points = warped_points;
0058 end
0059 warped_image = interp1(unwarped_points_vec,unwarped_image_vec,warped_points, 'linear',0);
0060 image_set(:,size(image_set,2)+1) = warped_image;
0061 points_set(:,size(points_set,2)+1) = warped_points;
0062
0063
0064
0065
0066 groupwise_pdf = compute_pdf(image_set, points_set, kernel, shape_weight);
0067 score = measure_pdf(groupwise_pdf, pdf_evaluation_method, warped_image);
0068
0069
0070 end
Generated on Thu 13-May-2004 18:00:46 by m2html © 2003