Home
last modified time | relevance | path

Searched refs:dest_im (Results 1 – 25 of 58) sorted by relevance

123

/dports/misc/vxl/vxl-3.3.2/core/vil/tests/
H A Dtest_resample_bicub.cxx19 vil_image_view<double> dest_im; in test_resample_bicub_byte() local
34 TEST("Width", dest_im.ni(), 4); in test_resample_bicub_byte()
35 TEST("Height", dest_im.nj(), 3); in test_resample_bicub_byte()
36 TEST_NEAR("dest(0,0)", dest_im(0, 0), 55, 1e-6); in test_resample_bicub_byte()
37 TEST_NEAR("dest(0,2)", dest_im(0, 2), 75, 1e-6); in test_resample_bicub_byte()
38 TEST_NEAR("dest(3,2)", dest_im(3, 2), 78, 1e-6); in test_resample_bicub_byte()
41 TEST_NEAR("dest(0,0)", dest_im(0, 0), 55, 1e-6); in test_resample_bicub_byte()
42 TEST_NEAR("dest(0,2)", dest_im(0, 2), 57, 1e-6); in test_resample_bicub_byte()
68 TEST("Width", dest_im.ni(), 4); in test_resample_bicub_byte()
69 TEST("Height", dest_im.nj(), 3); in test_resample_bicub_byte()
[all …]
H A Dtest_resample_bilin.cxx19 vil_image_view<double> dest_im; in test_resample_bilin_byte() local
34 TEST("Width", dest_im.ni(), 4); in test_resample_bilin_byte()
35 TEST("Height", dest_im.nj(), 3); in test_resample_bilin_byte()
36 TEST_NEAR("dest(0,0)", dest_im(0, 0), 55, 1e-6); in test_resample_bilin_byte()
37 TEST_NEAR("dest(0,2)", dest_im(0, 2), 75, 1e-6); in test_resample_bilin_byte()
38 TEST_NEAR("dest(3,2)", dest_im(3, 2), 78, 1e-6); in test_resample_bilin_byte()
41 TEST_NEAR("dest(0,0)", dest_im(0, 0), 55, 1e-6); in test_resample_bilin_byte()
42 TEST_NEAR("dest(0,2)", dest_im(0, 2), 57, 1e-6); in test_resample_bilin_byte()
62 TEST("Width", dest_im.ni(), 4); in test_resample_bilin_byte()
63 TEST("Height", dest_im.nj(), 3); in test_resample_bilin_byte()
[all …]
H A Dtest_resample_nearest.cxx19 vil_image_view<double> dest_im; in test_resample_nearest_byte() local
34 TEST("Width", dest_im.ni(), 4); in test_resample_nearest_byte()
35 TEST("Height", dest_im.nj(), 3); in test_resample_nearest_byte()
36 TEST("dest(0,0)", dest_im(0, 0), 55); in test_resample_nearest_byte()
37 TEST("dest(0,2)", dest_im(0, 2), 75); in test_resample_nearest_byte()
38 TEST("dest(3,2)", dest_im(3, 2), 78); in test_resample_nearest_byte()
41 TEST("dest(0,0)", dest_im(0, 0), 55); in test_resample_nearest_byte()
42 TEST("dest(0,2)", dest_im(0, 2), 57); in test_resample_nearest_byte()
43 TEST("dest(3,2)", dest_im(3, 2), 87); in test_resample_nearest_byte()
62 TEST("Width", dest_im.ni(), 4); in test_resample_nearest_byte()
[all …]
/dports/misc/vxl/vxl-3.3.2/contrib/mul/vil3d/algo/
H A Dvil3d_gauss_reduce.hxx29 T* dest_im, in vil3d_gauss_reduce_i() argument
37 dest_im += d_k_step; in vil3d_gauss_reduce_i()
92 dest_im.origin_ptr()+p*dest_im.planestep(), in vil3d_gauss_reduce()
93 dest_im.kstep(), dest_im.istep(), dest_im.jstep()); in vil3d_gauss_reduce()
117 dest_im.set_size(ni2,nj2,nk2,n_planes); in vil3d_gauss_reduce_ij()
131 dest_im.origin_ptr()+p*dest_im.planestep(), in vil3d_gauss_reduce_ij()
132 dest_im.jstep(),dest_im.istep(),dest_im.kstep()); in vil3d_gauss_reduce_ij()
171 dest_im.origin_ptr()+p*dest_im.planestep(), in vil3d_gauss_reduce_ik()
172 dest_im.kstep(),dest_im.istep(),dest_im.jstep()); in vil3d_gauss_reduce_ik()
212 dest_im.origin_ptr()+p*dest_im.planestep(), in vil3d_gauss_reduce_jk()
[all …]
H A Dvil3d_exp_filter.h18 vil3d_image_view<destT>& dest_im, in vil3d_exp_filter_i() argument
24 dest_im.set_size(ni,nj,nk,src_im.nplanes()); in vil3d_exp_filter_i()
27 std::ptrdiff_t d_istep = dest_im.istep(),d_jstep = dest_im.jstep(); in vil3d_exp_filter_i()
28 std::ptrdiff_t d_kstep = dest_im.kstep(); in vil3d_exp_filter_i()
33 destT* dest_slice = dest_im.origin_ptr()+p*dest_im.planestep(); in vil3d_exp_filter_i()
53 vil3d_image_view<destT>& dest_im, in vil3d_exp_filter() argument
67 dest_im.set_size(src_im.ni(),src_im.nj(),src_im.nk(),src_im.nplanes()); in vil3d_exp_filter()
68 vil3d_image_view<destT> dest_kij = vil3d_switch_axes_kij(dest_im); in vil3d_exp_filter()
80 vil3d_image_view<destT>& dest_im, in vil3d_exp_filter() argument
83 vil3d_exp_filter(src_im,dest_im,kf,kf,kf); in vil3d_exp_filter()
H A Dvil3d_convolve_1d.h45 vil3d_image_view<destT>& dest_im, in vil3d_convolve_1d() argument
62 dest_im.set_size(n_i, n_j, n_k, n_p); in vil3d_convolve_1d()
64 const std::ptrdiff_t d_istep = dest_im.istep(), in vil3d_convolve_1d()
65 d_jstep = dest_im.jstep(), in vil3d_convolve_1d()
66 d_kstep = dest_im.kstep(), in vil3d_convolve_1d()
67 d_pstep = dest_im.planestep(); in vil3d_convolve_1d()
71 destT* dest_plane = dest_im.origin_ptr(); in vil3d_convolve_1d()
/dports/misc/vxl/vxl-3.3.2/core/vil/algo/tests/
H A Dtest_algo_correlate_2d.cxx31 vil_image_view<double> dest_im; in test_algo_correlate_2d_byte() local
33 vil_correlate_2d(src_im, dest_im, kernel1, double()); in test_algo_correlate_2d_byte()
36 TEST("Destination size", dest_im.ni(), 1 + n - m); in test_algo_correlate_2d_byte()
38 TEST_NEAR("dest_im(0,0)", dest_im(0, 0), 0.5 * m * (m + 1), 1e-6); in test_algo_correlate_2d_byte()
39 TEST_NEAR("dest_im(1,0)", dest_im(1, 0), 0.5 * m * (m + 1) + m, 1e-6); in test_algo_correlate_2d_byte()
48 vil_correlate_2d(src_im, dest_im, kernel2, double()); in test_algo_correlate_2d_byte()
50 TEST("Destination size", dest_im.ni(), 1 + n - m); in test_algo_correlate_2d_byte()
51 TEST("Destination size", dest_im.nj(), 1 + n - 3); in test_algo_correlate_2d_byte()
63 vil_correlate_2d(src_im, dest_im, kernel3, double()); in test_algo_correlate_2d_byte()
65 TEST("Destination size", dest_im.ni(), 1 + n - m); in test_algo_correlate_2d_byte()
[all …]
H A Dtest_algo_convolve_2d.cxx32 vil_image_view<double> dest_im; in test_algo_convolve_2d_byte() local
34 vil_convolve_2d(src_im, dest_im, kernel1, double()); in test_algo_convolve_2d_byte()
37 TEST("Destination size", dest_im.ni(), 1 + n - m); in test_algo_convolve_2d_byte()
39 TEST_NEAR("dest_im(0,0)", dest_im(0, 0), 0.5 * m * (m + 1), 1e-6); in test_algo_convolve_2d_byte()
40 TEST_NEAR("dest_im(1,0)", dest_im(1, 0), 0.5 * m * (m + 1) + m, 1e-6); in test_algo_convolve_2d_byte()
49 vil_convolve_2d(src_im, dest_im, kernel2, double()); in test_algo_convolve_2d_byte()
51 TEST("Destination size", dest_im.ni(), 1 + n - m); in test_algo_convolve_2d_byte()
52 TEST("Destination size", dest_im.nj(), 1 + n - 3); in test_algo_convolve_2d_byte()
65 vil_convolve_2d(src_im, dest_im, kernel3, double()); in test_algo_convolve_2d_byte()
67 TEST("Destination size", dest_im.ni(), 1 + n - m); in test_algo_convolve_2d_byte()
[all …]
H A Dtest_algo_suppress_non_plateau.cxx16 vil_image_view<vxl_byte> image0, dest_im; in test_algo_suppress_non_plateau_byte() local
25 vil_suppress_non_plateau_3x3(image0, dest_im, vxl_byte(10)); // Ignore pixels < 10 in test_algo_suppress_non_plateau_byte()
26 TEST("Plateau at (3,7)", dest_im(3, 7), 18); in test_algo_suppress_non_plateau_byte()
27 TEST("Plateau at (7,5)", dest_im(7, 5), 19); in test_algo_suppress_non_plateau_byte()
28 TEST("Plateau at (4,3)", dest_im(4, 3), 20); in test_algo_suppress_non_plateau_byte()
29 TEST("Plateau at (4,4)", dest_im(4, 4), 20); in test_algo_suppress_non_plateau_byte()
31 TEST("No plateau at 2,2", dest_im(2, 2), 0); in test_algo_suppress_non_plateau_byte()
32 TEST("No plateau at 0,1", dest_im(3, 3), 0); in test_algo_suppress_non_plateau_byte()
H A Dtest_algo_exp_grad_filter_1d.cxx56 vil_image_view<float> dest_im; in test_algo_exp_grad_filter_1d_byte_float() local
61 vil_exp_grad_filter_i(src_im, dest_im, double(0.25)); in test_algo_exp_grad_filter_1d_byte_float()
63 TEST("Width", dest_im.ni(), src_im.ni()); in test_algo_exp_grad_filter_1d_byte_float()
64 TEST("Height", dest_im.nj(), src_im.nj()); in test_algo_exp_grad_filter_1d_byte_float()
65 TEST_NEAR("dest_im(5,5)", dest_im(5, 5), 10, 1e-2); in test_algo_exp_grad_filter_1d_byte_float()
71 vil_exp_grad_filter_j(src_im, dest_im, double(0.25)); in test_algo_exp_grad_filter_1d_byte_float()
73 TEST("Width", dest_im.ni(), src_im.ni()); in test_algo_exp_grad_filter_1d_byte_float()
74 TEST("Height", dest_im.nj(), src_im.nj()); in test_algo_exp_grad_filter_1d_byte_float()
75 TEST_NEAR("dest_im(5,5)", dest_im(5, 5), 10, 1e-2); in test_algo_exp_grad_filter_1d_byte_float()
77 vil_print_all(std::cout, dest_im); in test_algo_exp_grad_filter_1d_byte_float()
H A Dtest_suppress_non_max.cxx16 vil_image_view<vxl_byte> image0, dest_im; in test_suppress_non_max_byte() local
26 vil_suppress_non_max_3x3(image0, dest_im, vxl_byte(3)); in test_suppress_non_max_byte()
27 TEST("Peak at (3,7)", dest_im(3, 7), 18); in test_suppress_non_max_byte()
28 TEST("Peak at (7,5)", dest_im(7, 5), 19); in test_suppress_non_max_byte()
29 TEST("Flat Peak at (4,4) removed (sadly)", dest_im(4, 4), 0); in test_suppress_non_max_byte()
31 TEST("No peak at 2,2", dest_im(2, 2), 0); in test_suppress_non_max_byte()
32 TEST("No peak at 0,1", dest_im(3, 3), 0); in test_suppress_non_max_byte()
H A Dtest_algo_gauss_filter.cxx234 vil_image_view<float> dest_im; in test_algo_gauss_filter_1d() local
238 vil_gauss_filter_1d(src_im, dest_im, sd, half_width); in test_algo_gauss_filter_1d()
239 TEST("Output image ni", dest_im.ni(), src_im.ni()); in test_algo_gauss_filter_1d()
240 TEST("Output image nj", dest_im.nj(), src_im.nj()); in test_algo_gauss_filter_1d()
245 TEST_NEAR("Value beyond filter", dest_im(nx - (half_width + 1), ny), 0, 1e-6); in test_algo_gauss_filter_1d()
262 vil_image_view<float> dest_im; in test_algo_gauss_filter_2d() local
266 vil_gauss_filter_2d(src_im, dest_im, sd, half_width); in test_algo_gauss_filter_2d()
267 TEST("Output image ni", dest_im.ni(), src_im.ni()); in test_algo_gauss_filter_2d()
268 TEST("Output image nj", dest_im.nj(), src_im.nj()); in test_algo_gauss_filter_2d()
275 TEST_NEAR("Value beyond filter", dest_im(nx - (half_width + 1), 0), 0, 1e-6); in test_algo_gauss_filter_2d()
[all …]
H A Dtest_algo_exp_filter_1d.cxx58 vil_image_view<float> dest_im; in test_algo_exp_filter_1d_byte_float() local
62 vil_exp_filter_i(src_im, dest_im, double(0.1)); in test_algo_exp_filter_1d_byte_float()
64 TEST("Width", dest_im.ni(), src_im.ni()); in test_algo_exp_filter_1d_byte_float()
65 TEST("Height", dest_im.nj(), src_im.nj()); in test_algo_exp_filter_1d_byte_float()
66 TEST_NEAR("dest_im(5,5)", dest_im(5, 5), 55, 1e-2); in test_algo_exp_filter_1d_byte_float()
68 vil_exp_filter_j(src_im, dest_im, double(0.1)); in test_algo_exp_filter_1d_byte_float()
70 TEST("Width", dest_im.ni(), src_im.ni()); in test_algo_exp_filter_1d_byte_float()
71 TEST("Height", dest_im.nj(), src_im.nj()); in test_algo_exp_filter_1d_byte_float()
72 TEST_NEAR("dest_im(5,5)", dest_im(5, 5), 55, 1e-2); in test_algo_exp_filter_1d_byte_float()
/dports/misc/vxl/vxl-3.3.2/core/vil/algo/
H A Dvil_gauss_reduce.h34 vil_image_view<T>& dest_im,
131 T* dest_im,
147 vxl_byte* dest_im,
163 float* dest_im,
179 int* dest_im,
186 double* dest_im,
202 vxl_int_16* dest_im,
211 T* dest_im,
229 float* dest_im,
238 int* dest_im,
[all …]
H A Dvil_exp_filter_1d.h53 vil_image_view<destT>& dest_im, in vil_exp_filter_i() argument
58 dest_im.set_size(ni,nj,src_im.nplanes()); in vil_exp_filter_i()
60 std::ptrdiff_t d_istep = dest_im.istep(),d_jstep = dest_im.jstep(); in vil_exp_filter_i()
65 destT* dest_row = dest_im.top_left_ptr()+p*dest_im.planestep(); in vil_exp_filter_i()
78 vil_image_view<destT>& dest_im, in vil_exp_filter_j() argument
83 dest_im.set_size(ni,nj,src_im.nplanes()); in vil_exp_filter_j()
85 std::ptrdiff_t d_istep = dest_im.istep(),d_jstep = dest_im.jstep(); in vil_exp_filter_j()
90 destT* dest_col = dest_im.top_left_ptr()+p*dest_im.planestep(); in vil_exp_filter_j()
H A Dvil_suppress_non_plateau.h30 vil_image_view<T>& dest_im,
36 dest_im.set_size(ni,nj,1);
39 std::ptrdiff_t distep = dest_im.istep(),djstep=dest_im.jstep();
41 T* drow = dest_im.top_left_ptr()+distep+djstep;
56 vil_fill_row(dest_im,0,non_max_value);
57 vil_fill_row(dest_im,nj-1,non_max_value);
58 vil_fill_col(dest_im,0,non_max_value);
59 vil_fill_col(dest_im,ni-1,non_max_value);
H A Dvil_suppress_non_max.h37 vil_image_view<T>& dest_im,
43 dest_im.set_size(ni,nj,1);
46 std::ptrdiff_t distep = dest_im.istep(),djstep=dest_im.jstep();
48 T* drow = dest_im.top_left_ptr()+distep+djstep;
63 vil_fill_row(dest_im,0,non_max_value);
64 vil_fill_row(dest_im,nj-1,non_max_value);
65 vil_fill_col(dest_im,0,non_max_value);
66 vil_fill_col(dest_im,ni-1,non_max_value);
H A Dvil_exp_grad_filter_1d.h59 vil_image_view<destT>& dest_im, in vil_exp_grad_filter_i() argument
64 dest_im.set_size(ni,nj,src_im.nplanes()); in vil_exp_grad_filter_i()
66 std::ptrdiff_t d_istep = dest_im.istep(),d_jstep = dest_im.jstep(); in vil_exp_grad_filter_i()
71 destT* dest_row = dest_im.top_left_ptr()+p*dest_im.planestep(); in vil_exp_grad_filter_i()
84 vil_image_view<destT>& dest_im, in vil_exp_grad_filter_j() argument
89 dest_im.set_size(ni,nj,src_im.nplanes()); in vil_exp_grad_filter_j()
91 std::ptrdiff_t d_istep = dest_im.istep(),d_jstep = dest_im.jstep(); in vil_exp_grad_filter_j()
96 destT* dest_col = dest_im.top_left_ptr()+p*dest_im.planestep(); in vil_exp_grad_filter_j()
H A Dvil_gauss_filter.h78 destT* dest_im, std::ptrdiff_t dest_ystep,
86 vil_image_view<destT>& dest_im,
95 vil_image_view<destT>& dest_im, in vil_gauss_filter_5tap() argument
99 vil_gauss_filter_5tap(src_im, dest_im, params, work); in vil_gauss_filter_5tap()
124 vil_image_view<destT>& dest_im, in vil_gauss_filter_1d() argument
140 vil_image_view<destT>& dest_im,
154 dest_im.set_size(src_im.ni(),src_im.nj(),src_im.nplanes());
156 vil_image_view<destT> dest_im_t = vil_transpose(dest_im);
171 vil_image_view<destT>& dest_im,
186 dest_im.set_size(src_im.ni(),src_im.nj(),src_im.nplanes());
[all …]
H A Dvil_gauss_reduce.cxx32 vxl_byte * d_row = dest_im; in vil_gauss_reduce_1plane()
73 float * d_row = dest_im; in vil_gauss_reduce_1plane()
113 double * d_row = dest_im; in vil_gauss_reduce_1plane()
152 int * d_row = dest_im; in vil_gauss_reduce_1plane()
236 float * d_row = dest_im; in vil_gauss_reduce_2_3_1plane()
379 int * d_row = dest_im; in vil_gauss_reduce_2_3_1plane()
518 dest_im[i] = *s0; in vil_gauss_reduce_121_1plane()
593 dest_im[i] = *s0; in vil_gauss_reduce_121_1plane()
668 dest_im[i] = *s0; in vil_gauss_reduce_121_1plane()
745 dest_im[i] = *s0; in vil_gauss_reduce_121_1plane()
[all …]
H A Dvil_gauss_reduce.hxx34 dest_im.set_size(ni2,nj2,n_planes); in vil_gauss_reduce()
51 dest_im.top_left_ptr()+i*dest_im.planestep(), in vil_gauss_reduce()
52 dest_im.jstep(),dest_im.istep()); in vil_gauss_reduce()
89 dest_im.top_left_ptr()+i*dest_im.planestep(), in vil_gauss_reduce_2_3()
90 dest_im.jstep(),dest_im.istep()); in vil_gauss_reduce_2_3()
116 dest_im.top_left_ptr() + i*dest_im.planestep(), in vil_gauss_reduce_121()
117 dest_im.istep(), dest_im.jstep()); in vil_gauss_reduce_121()
290 T* d_row = dest_im; in vil_gauss_reduce_1plane()
339 T* d_row = dest_im+d_y_step; in vil_gauss_reduce_121_1plane()
391 dest_im[i]= *s0; in vil_gauss_reduce_121_1plane()
[all …]
H A Dvil_gauss_filter.hxx90 destT* dest_row = dest_im + y*dest_jstep; in vil_gauss_filter_5tap()
118 destT* dest_row_top = dest_im + (ny-1) * dest_jstep; in vil_gauss_filter_5tap()
120 destT* dest_row_bottom = dest_im; in vil_gauss_filter_5tap()
148 vil_image_view<destT>& dest_im, in vil_gauss_filter_5tap() argument
155 dest_im.set_size(ni, nj, n_planes); in vil_gauss_filter_5tap()
163 &dest_im(0,0,p), dest_im.istep(), dest_im.jstep(), ni,nj, in vil_gauss_filter_5tap()
227 dest_im=work; in vil_gauss_filter_5tap()
235 dest_im(i,0,p) = vl_round(k0 * work(i,0,p) + k1 * work(i,1,p), destT()); in vil_gauss_filter_5tap()
236 dest_im(i,1,p) = vl_round(k1 * work(i,0,p) + k0 * work(i,1,p), destT()); in vil_gauss_filter_5tap()
277 vil_image_view<destT> rdest = vil_transpose(dest_im); in vil_gauss_filter_5tap()
[all …]
/dports/misc/vxl/vxl-3.3.2/contrib/mul/vimt/
H A Dvimt_convert.h22 vimt_image_2d_of<destT>& dest_im) in vimt_convert_cast() argument
24 vil_convert_cast(src_im.image(),dest_im.image()); in vimt_convert_cast()
25 dest_im.set_world2im(src_im.world2im()); in vimt_convert_cast()
33 vimt_image_2d_of<destT>& dest_im) in vimt_convert_round() argument
35 vil_convert_round(src_im.image(),dest_im.image()); in vimt_convert_round()
36 dest_im.set_world2im(src_im.world2im()); in vimt_convert_round()
42 vimt_image_2d_of<vxl_byte>& dest_im) in vimt_convert_stretch_range() argument
44 vil_convert_stretch_range(src_im.image(),dest_im.image()); in vimt_convert_stretch_range()
45 dest_im.set_world2im(src_im.world2im()); in vimt_convert_stretch_range()
/dports/misc/vxl/vxl-3.3.2/core/vil/examples/
H A Dvil_rotate_image.cxx41 vil_image_view<vxl_byte> dest_im; in main() local
42 vil_rotate_image(src_im, dest_im, theta); in main()
44 std::cout << "src_im = " << src_im << std::endl << "dest_im = " << dest_im << std::endl; in main()
46 if (!vil_save(dest_im, argv[2])) in main()
52 …std::cout << "Saved rotated image of size " << dest_im.ni() << " x " << dest_im.nj() << " to " << … in main()
/dports/misc/vxl/vxl-3.3.2/contrib/mul/vil3d/tests/
H A Dtest_algo_normalised_correlation_3d.cxx30 vil3d_image_view<double> dest_im; in test_algo_normalised_correlation_3d_byte() local
32 vil3d_normalised_correlation_3d(src_im,dest_im,kernel1,double()); in test_algo_normalised_correlation_3d_byte()
34 TEST("Destination size i",dest_im.ni(),1+ni-m); in test_algo_normalised_correlation_3d_byte()
35 TEST("Destination size j",dest_im.nj(),1+nj-m); in test_algo_normalised_correlation_3d_byte()
36 TEST("Destination size k",dest_im.nk(),1+nk-m); in test_algo_normalised_correlation_3d_byte()
47 TEST_NEAR("Test element (0,0,0)",dest_im(0,0,0),sum/std::sqrt(var),1e-6); in test_algo_normalised_correlation_3d_byte()

123