/dports/science/py-nibabel/nibabel-3.2.1/nibabel/tests/ |
H A D | test_parrec_data.py | 41 nimg = top_load(nifti_fname) 42 assert_almost_equal(nimg.affine[:3, :3], pimg.affine[:3, :3], 3) 44 aff_off = pimg.affine[:3, 3] - nimg.affine[:3, 3] 47 vox_sizes = voxel_sizes(nimg.affine) 51 assert np.allclose(pimg.dataobj, nimg.dataobj) 77 nimg = top_load(nifti_fname) 78 assert_almost_equal(nimg.affine[:3, :3], pimg.affine[:3, :3], 3) 81 aff_off = pimg.affine[:3, 3] - nimg.affine[:3, 3] 83 vox_sizes = voxel_sizes(nimg.affine) 86 assert np.allclose(pimg.dataobj, nimg.dataobj)
|
/dports/graphics/IPA/IPA-1.08/Geometry/ |
H A D | Geometry.c | 160 PImage nimg; in IPA__Geometry_rotate90() local 182 memcpy( nimg-> palette, img-> palette, ( nimg-> palSize = img-> palSize) * 3); in IPA__Geometry_rotate90() 188 ddh = nimg-> lineSize; in IPA__Geometry_rotate90() 192 Byte * dst0 = nimg-> data + nimg-> w - ddh - 1; in IPA__Geometry_rotate90() 201 Byte * dst0 = nimg-> data + ( nimg-> w - 1) * bs; in IPA__Geometry_rotate90() 219 Byte * dst0 = nimg-> data + nimg-> h * nimg-> lineSize; in IPA__Geometry_rotate90() 228 Byte * dst0 = nimg-> data + ( nimg-> h - 1) * nimg-> lineSize; in IPA__Geometry_rotate90() 245 return nimg; in IPA__Geometry_rotate90() 251 PImage nimg; in IPA__Geometry_rotate180() local 279 dst = nimg-> data + nimg-> h * nimg-> lineSize - dw - bs; in IPA__Geometry_rotate180() [all …]
|
/dports/science/afni/afni-AFNI_21.3.16/src/matlab/ |
H A D | GE_get_volsperrun.m | 42 nimg = 0; variable 59 nimg = nimg+1; variable 62 runnum(nimg) = fread(fid,1,'float32'); % im_hdr.user17 63 imagename{nimg} = imageFile; 86 % im_rawrunnum(nimg) = im_hdr.rawrunnum; 87 % im_datetime(nimg) = im_hdr.im_datetime; 88 % im_actual_dt(nimg) = im_hdr.im_actual_dt; 89 % im_lastmod(nimg) = im_hdr.im_lastmod; 90 % im_checksum(nimg) = im_hdr.im_checksum; 91 % im_scanactno(nimg) = im_hdr.scanactno;
|
/dports/graphics/p5-Imager/Imager-1.012/t/300-transform/ |
H A D | 500-trans.t | 30 my $nimg=$img->transform(xexpr=>'x',yexpr=>'y+10*sin((x+y)/10)'); 31 ok($nimg, "do transformation") 36 ok($nimg->write(type=>'pnm',file=>'testout/t55.ppm'), "save to file"); 41 my $nimg=$img->transform(xexpr=>'x+0.1*y+5*sin(y/10.0+1.57)', 43 ok($nimg, "more complex transform") 46 ok($nimg->write(type=>'pnm',file=>'testout/t55b.ppm'), "save to file");
|
H A D | 030-copyflip.t | 16 my $nimg = $img->copy(); 17 ok($nimg, "copy returned something"); 21 my $diff = Imager::i_img_diff($img->{IMG}, $nimg->{IMG}); 22 is_image($img, $nimg, "copy matches source"); 31 $nimg->flip(dir=>"h")->flip(dir=>"h"); 32 is_image($nimg, $img, "double horiz flipped matches original"); 35 $nimg->flip(dir=>"v")->flip(dir=>"v"); 36 is_image($nimg, $img, "double vertically flipped image matches original"); 40 $nimg->flip(dir=>"v")->flip(dir=>"h")->flip(dir=>"hv");; 41 is_image($img, $nimg, "check flip with hv matches flip v then flip h");
|
/dports/science/hdf/hdf-4.2.15/hdf/util/ |
H A D | ristosds.c | 42 int nimg, nimg0; /* nimg, nimg0 -- number of images */ in main() local 57 nimg = 0; in main() 76 ret = cntimage(infile, &w, &h, &nimg); in main() 82 nimg0 = nimg; in main() 83 printf("Total number of images: %d.\n", nimg); in main() 99 outdata0 = outdata = (uint8 *) HDmalloc((size_t)(nimg * w * h) * (sizeof(uint8))); in main() 105 indata0 = indata = (uint8 *) HDmalloc((size_t)(nimg * w * h) * sizeof(uint8)); in main() 120 while (nimg > 0) in main() 143 nimg--; in main()
|
/dports/lang/opencoarrays/OpenCoarrays-2.9.0/src/tests/regression/reported/ |
H A D | issue-503-non-contig-red-ndarray.f90 | 3 integer :: i, me, nimg variable 11 nimg = num_images() 25 print *, 'excpected: nimg * sumc=', nimg * sumc 28 failc = abs(redc - nimg * sumc) > eps 38 print *, 'expected (nimg * sumnc)=', nimg * sumnc 42 failnc = abs(rednc - nimg * sumnc) > eps
|
H A D | issue-488-multi-dim-cobounds.f90 | 23 integer :: me, nimg, mx, my, i, j, k variable 33 nimg = num_images() 34 mx = nimg / 2 ! 2d grid distribution 35 my = nimg / mx 37 if (nimg /= 8) then
|
H A D | issue-503-multidim-array-broadcast.f90 | 7 integer :: i, me, nimg variable 14 nimg = num_images() 37 if (abs(red1 - nimg * sum1) > epsilon(0.) .or. abs(red2 - nimg * sum2) > epsilon(0.)) then
|
H A D | issue-515-mimic-mpi-gatherv.f90 | 15 integer :: me, nimg, gsize, i, lo, hi variable 19 nimg = num_images() 33 do i = 1, nimg
|
H A D | issue-552-send_by_ref-singleton.f90 | 9 integer :: me, remote, nimg, i, j, k, ni, nj, nk variable 13 nimg = num_images() 16 if (nimg /= 2) error stop 1
|
/dports/science/teem/teem-1.11.0-src/src/nrrd/test/ |
H A D | convo.c | 34 Nrrd *nimg, *nmask, *npad; in convoFunc() local 73 airMopAdd(mop, nimg=nrrdNew(), (airMopper)nrrdNuke, airMopAlways); in convoFunc() 77 if (!E) E |= nrrdConvert(nimg, _nimg, nrrdTypeFloat); in convoFunc() 81 if (!E) E |= nrrdPad_va(npad, nimg, pmin, pmax, nrrdBoundaryPad, 0.0); in convoFunc() 86 idata = (float *)nimg->data; in convoFunc() 166 Nrrd *nimg, *nmask, *nout; in main() local 179 hestOptAdd(&hopt, NULL, "image", airTypeOther, 1, 1, &nimg, NULL, in main() 193 if (!( 2 == nimg->dim && 2 == nmask->dim )) { in main() 195 me, nimg->dim, nmask->dim); in main() 199 if (convoFunc(nout, nimg, nmask, !renorm, !uncrop)) { in main()
|
/dports/science/teem/teem-1.11.0-src/Testing/nrrd/ |
H A D | trand.c | 51 Nrrd *nval, *nhist, *nimg, *nread, *ncorr; in main() local 84 nimg=nrrdNew(); in main() 85 airMopAdd(mop, nimg, (airMopper)nrrdNuke, airMopAlways); in main() 87 || nrrdHistoDraw(nimg, nhist, HGHT, AIR_TRUE, 0.0) in main() 88 || nrrdSave(THISNAME, nimg, NULL)) { in main()
|
/dports/science/cp2k-data/cp2k-7.1.0/src/ |
H A D | qs_tensors.F | 653 nimg = 1 656 ALLOCATE (alloc_i(nimg, nimg)) 657 ALLOCATE (alloc_j(nimg, nimg)) 658 ALLOCATE (alloc_k(nimg, nimg)) 754 DO i_img = 1, nimg 909 nimg = 1 912 CPASSERT(ALL(SHAPE(t3c) == [nimg, nimg])) 1351 nimg = 1 1361 DO img = 1, nimg 1370 DO img = 1, nimg [all …]
|
H A D | qs_mixing_utils.F | 81 nimg = SIZE(p_in, 2) 86 DO ic = 1, nimg 147 nimg = dft_control%nimages 154 DO ic = 1, nimg 171 DO ic = 1, nimg 254 DO ic = 1, nimg 319 DO ic = 1, nimg 382 DO ic = 1, nimg 395 DO ic = 1, nimg 536 nimg = SIZE(rho_ao_kp, 2) [all …]
|
/dports/cad/astk-serveur/astk-2020.0/ASTK_CLIENT/lib/ |
H A D | ihm_status.tcl | 30 image create photo nimg -file $astk::icon(help_sans) 31 button $astk::ihm(status).st.img.w -image nimg -bd 0 -relief flat 53 image create photo nimg -file $astk::icon(help_sans) 54 button $astk::ihm(status).st.img.w -image nimg -bd 0 -relief flat
|
/dports/cad/astk-client/astk-2020.0/ASTK_CLIENT/lib/ |
H A D | ihm_status.tcl | 30 image create photo nimg -file $astk::icon(help_sans) 31 button $astk::ihm(status).st.img.w -image nimg -bd 0 -relief flat 53 image create photo nimg -file $astk::icon(help_sans) 54 button $astk::ihm(status).st.img.w -image nimg -bd 0 -relief flat
|
/dports/x11/xcb-util-cursor/xcb-util-cursor-0.1.3/cursor/ |
H A D | load_cursor.c | 190 int nimg = 0; in xcb_cursor_load_cursor() local 218 if (parse_cursor_file(c, fd, &images, &nimg) < 0) { in xcb_cursor_load_cursor() 226 xcb_render_animcursorelt_t elements[nimg]; in xcb_cursor_load_cursor() 229 for (int n = 0; n < nimg; n++) { in xcb_cursor_load_cursor() 269 if (nimg == 1 || c->render_version == RV_CURSOR) { in xcb_cursor_load_cursor() 274 xcb_render_create_anim_cursor (c->conn, cid, nimg, elements); in xcb_cursor_load_cursor() 276 for (int n = 0; n < nimg; n++) { in xcb_cursor_load_cursor()
|
/dports/science/cp2k/cp2k-2e995eec7fd208c8a72d9544807bd8b8ba8cd1cc/src/ |
H A D | qs_mixing_utils.F | 81 nimg = SIZE(p_in, 2) 86 DO ic = 1, nimg 147 nimg = dft_control%nimages 154 DO ic = 1, nimg 171 DO ic = 1, nimg 254 DO ic = 1, nimg 319 DO ic = 1, nimg 382 DO ic = 1, nimg 395 DO ic = 1, nimg 536 nimg = SIZE(rho_ao_kp, 2) [all …]
|
H A D | qs_tensors.F | 684 nimg = 1 687 ALLOCATE (alloc_i(nimg, nimg)) 688 ALLOCATE (alloc_j(nimg, nimg)) 689 ALLOCATE (alloc_k(nimg, nimg)) 796 DO i_img = 1, nimg 960 nimg = 1 963 CPASSERT(ALL(SHAPE(t3c) == [nimg, nimg])) 1463 nimg = 1 1473 DO img = 1, nimg 1482 DO img = 1, nimg [all …]
|
/dports/graphics/photoflow/PhotoFlow-8472024f/scripts/exposure-blend/ |
H A D | exposure-blend.sh | 25 nimg=$# 28 for i in $(seq 1 $nimg); do 66 for i in $(seq 1 $nimg); do 87 for i in $(seq 1 $nimg); do 104 for i in $(seq 2 $nimg); do
|
/dports/games/xconq/xconq-7.5.0-0pre.0.20050612/kernel/ |
H A D | imf.c | 370 nimg->w = w; nimg->h = h; in get_img() 371 nimg->embedx = nimg->embedy = -1; in get_img() 372 nimg->embedw = nimg->embedh = -1; in get_img() 373 nimg->monodata = nimg->colrdata = nimg->maskdata = lispnil; in get_img() 376 nimg->actualw = w; nimg->actualh = h; in get_img() 378 nimg->bboxw = w; nimg->bboxh = h; in get_img() 409 nimg->w = w; nimg->h = h; in get_subimg() 410 nimg->embedx = nimg->embedy = -1; in get_subimg() 411 nimg->embedw = nimg->embedh = -1; in get_subimg() 412 nimg->monodata = nimg->colrdata = nimg->maskdata = lispnil; in get_subimg() [all …]
|
/dports/science/py-ase/ase-3.22.0/ase/gui/ |
H A D | quickinfo.py | 18 nimg = len(images) 31 if nimg == 1: 34 add(_('Image {} loaded (0–{}).').format(img, nimg - 1)) 64 if nimg > 1:
|
/dports/misc/vxl/vxl-3.3.2/contrib/brl/bseg/betr/pro/processes/ |
H A D | betr_set_event_trigger_data_multi_ref_process.cxx | 64 unsigned nimg = (ref_img_paths->data_array).size(); in betr_set_event_trigger_data_multi_ref_process() local 66 if(!event_trigger||!nimg || !ncam || evt_img_path=="" || evt_cam_path==""){ in betr_set_event_trigger_data_multi_ref_process() 70 if(nimg != ncam){ in betr_set_event_trigger_data_multi_ref_process() 76 for(unsigned i = 0; i<nimg; i++){ in betr_set_event_trigger_data_multi_ref_process()
|
/dports/science/teem/teem-1.11.0-src/src/bin/ |
H A D | talkweb.c | 223 Nrrd *nimg; in tkwbExpandImageInfo() local 228 nimg = nrrdNew(); in tkwbExpandImageInfo() 229 airMopAdd(mop, nimg, (airMopper)nrrdNuke, airMopAlways); in tkwbExpandImageInfo() 231 if (nrrdLoad(nimg, slide[si]->image, NULL)) { in tkwbExpandImageInfo() 236 if (!nrrdFormatPNG->fitsInto(nimg, nrrdEncodingGzip, AIR_TRUE)) { in tkwbExpandImageInfo() 242 sx = nimg->axis[nimg->dim-2].size; in tkwbExpandImageInfo() 243 sy = nimg->axis[nimg->dim-1].size; in tkwbExpandImageInfo()
|