Home
last modified time | relevance | path

Searched refs:voxels (Results 1 – 25 of 439) sorted by relevance

12345678910>>...18

/dports/misc/vxl/vxl-3.3.2/contrib/gel/octree/
H A Dmain.cxx308 std::vector<Voxel> voxels; in main() local
469 … newvoxels.emplace_back( voxels[i].depth+1, voxels[i].x*2 , voxels[i].y*2 , voxels[i].z*2 ); in main()
470 … newvoxels.emplace_back( voxels[i].depth+1, voxels[i].x*2 , voxels[i].y*2 , voxels[i].z*2+1); in main()
471 … newvoxels.emplace_back( voxels[i].depth+1, voxels[i].x*2 , voxels[i].y*2+1, voxels[i].z*2 ); in main()
472 … newvoxels.emplace_back( voxels[i].depth+1, voxels[i].x*2 , voxels[i].y*2+1, voxels[i].z*2+1); in main()
473 … newvoxels.emplace_back( voxels[i].depth+1, voxels[i].x*2+1, voxels[i].y*2 , voxels[i].z*2 ); in main()
474 … newvoxels.emplace_back( voxels[i].depth+1, voxels[i].x*2+1, voxels[i].y*2 , voxels[i].z*2+1); in main()
475 … newvoxels.emplace_back( voxels[i].depth+1, voxels[i].x*2+1, voxels[i].y*2+1, voxels[i].z*2 ); in main()
476 … newvoxels.emplace_back( voxels[i].depth+1, voxels[i].x*2+1, voxels[i].y*2+1, voxels[i].z*2+1); in main()
494 voxels= newvoxels; in main()
[all …]
/dports/graphics/openvkl/openvkl-1.1.0/testing/volume/
H A DRawHFileStructuredVolume.h108 std::vector<unsigned char> &voxels, in readStaticFile() argument
115 voxels.resize(numBytes); in readStaticFile()
119 input.read((char *)voxels.data(), numBytes); in readStaticFile()
127 std::vector<unsigned char> &voxels, in readStructuredMBFile() argument
135 voxels.resize(numBytes); in readStructuredMBFile()
139 input.read((char *)voxels.data(), numBytes); in readStructuredMBFile()
147 std::vector<unsigned char> &voxels, in readUnstructuredMBFile() argument
168 voxels.resize(numBytes); in readUnstructuredMBFile()
169 input.read((char *)voxels.data(), in readUnstructuredMBFile()
178 std::vector<unsigned char> &voxels, in generateVoxels() argument
[all …]
H A DTestingStructuredVolume.h28 virtual void generateVoxels(std::vector<unsigned char> &voxels,
57 std::vector<unsigned char> voxels;
136 generateVoxels(voxels, time, tuvIndex); in generateVKLVolume()
150 if (voxels.size() != totalNumValues * byteStride) in generateVKLVolume()
162 voxels.data(), in generateVKLVolume()
173 if (voxels.size() != totalNumValues * byteStride) in generateVKLVolume()
185 voxels.data(), in generateVKLVolume()
202 if (voxels.size() != totalNumValues * byteStride) in generateVKLVolume()
210 voxels.data(), in generateVKLVolume()
236 computeValueRange(voxelType, voxels.data(), totalNumValues); in generateVKLVolume()
[all …]
H A DProceduralShellsAMRVolume.h102 std::vector<float> voxels(numCells, -0.5f); in generateVKLVolume()
108 blockDataVectors.emplace_back(voxels); in generateVKLVolume()
116 voxels = std::vector<float>(numCells, float(level - 1)); in generateVKLVolume()
123 blockDataVectors.emplace_back(voxels); in generateVKLVolume()
128 blockDataVectors.emplace_back(voxels); in generateVKLVolume()
133 blockDataVectors.emplace_back(voxels); in generateVKLVolume()
138 blockDataVectors.emplace_back(voxels); in generateVKLVolume()
143 blockDataVectors.emplace_back(voxels); in generateVKLVolume()
148 blockDataVectors.emplace_back(voxels); in generateVKLVolume()
153 blockDataVectors.emplace_back(voxels); in generateVKLVolume()
[all …]
H A DProceduralStructuredVolume.h65 void generateVoxels(std::vector<unsigned char> &voxels,
126 generateVoxels(std::vector<unsigned char> &voxels, in generateVoxels() argument
135 voxels.resize(numBytes); in generateVoxels()
143 (VOXEL_TYPE *)(voxels.data() + index * byteStride); in generateVoxels()
153 voxels.resize(numBytes * numTimesteps); in generateVoxels()
163 (VOXEL_TYPE *)(voxels.data() + index * byteStride); in generateVoxels()
177 voxels.resize(numBytes * numTimesteps); in generateVoxels()
202 (VOXEL_TYPE *)(voxels.data() + index * byteStride); in generateVoxels()
216 voxels.resize(lastEnd * byteStride); in generateVoxels()
220 voxels.resize(numBytes * numTimesteps); in generateVoxels()
[all …]
H A DRawFileStructuredVolume.h25 void generateVoxels(std::vector<unsigned char> &voxels,
53 std::vector<unsigned char> &voxels, in generateVoxels() argument
60 voxels.resize(numBytes); in generateVoxels()
70 input.read((char *)voxels.data(), numBytes); in generateVoxels()
/dports/graphics/pcl-pointclouds/pcl-pcl-1.12.0/test/octree/
H A Dtest_octree.cpp102 ASSERT_TRUE (octreeA.existLeaf (voxels[i].x, voxels[i].y, voxels[i].z)); in TEST()
105 octreeA.removeLeaf (voxels[i].x, voxels[i].y, voxels[i].z); in TEST()
108 ASSERT_FALSE (octreeA.existLeaf (voxels[i].x, voxels[i].y, voxels[i].z)); in TEST()
128 ASSERT_TRUE (octreeA.existLeaf (voxels[i].x, voxels[i].y, voxels[i].z)); in TEST()
129 ASSERT_TRUE (octreeB.existLeaf (voxels[i].x, voxels[i].y, voxels[i].z)); in TEST()
135 ASSERT_FALSE (octreeB.existLeaf (voxels[i].x, voxels[i].y, voxels[i].z)); in TEST()
147 ASSERT_FALSE (octreeB.existLeaf (voxels[i].x, voxels[i].y, voxels[i].z)); in TEST()
418 ASSERT_TRUE (octreeA.existLeaf (voxels[i].x, voxels[i].y, voxels[i].z)); in TEST()
421 octreeA.removeLeaf (voxels[i].x, voxels[i].y, voxels[i].z); in TEST()
424 ASSERT_FALSE (octreeA.existLeaf (voxels[i].x, voxels[i].y, voxels[i].z)); in TEST()
[all …]
/dports/math/octave-forge-image/image-2.12.0/src/
H A Dunion-find.h33 std::vector<voxel> voxels;
37 explicit union_find (octave_idx_type s) : voxels (s) {}; in union_find()
43 voxels[idx].parent = idx; in add()
44 voxels[idx].rank = 0; in add()
52 voxel* elt = &voxels[idx]; in find()
70 voxel* v1 = &voxels[root1]; in unite()
71 voxel* v2 = &voxels[root2]; in unite()
90 for (size_t i = 0; i < voxels.size (); i++) in get_ids()
/dports/graphics/openvkl/openvkl-1.1.0/examples/ispc/
H A DvklTutorialISPC.cpp28 std::vector<float> voxels(dimensions.x * dimensions.y * dimensions.z); in main() local
36 voxels[k * dimensions.x * dimensions.y + j * dimensions.x + i] = in main()
40 vklNewData(device, voxels.size(), VKL_FLOAT, voxels.data())); in main()
46 voxels[k * dimensions.x * dimensions.y + j * dimensions.x + i] = in main()
50 vklNewData(device, voxels.size(), VKL_FLOAT, voxels.data())); in main()
56 voxels[k * dimensions.x * dimensions.y + j * dimensions.x + i] = in main()
60 vklNewData(device, voxels.size(), VKL_FLOAT, voxels.data())); in main()
/dports/graphics/ospray/ospray-2.8.0/apps/common/ospray_testing/builders/
H A DGravitySpheresVolume.cpp39 cpp::Volume createStructuredVolume(const VoxelArray &voxels) const;
40 cpp::Volume createAMRVolume(const VoxelArray &voxels) const;
85 auto voxels = generateVoxels(); in buildGroup() local
89 createAsAMR ? createAMRVolume(voxels) : createStructuredVolume(voxels); in buildGroup()
218 std::vector<float> voxels(volumeDimensions.long_product()); in generateVoxels() local
239 voxels[index] = value; in generateVoxels()
244 return voxels; in generateVoxels()
248 const VoxelArray &voxels) const in createStructuredVolume()
254 volume.setParam("data", cpp::CopiedData(voxels.data(), volumeDimensions)); in createStructuredVolume()
259 cpp::Volume GravitySpheres::createAMRVolume(const VoxelArray &voxels) const in createAMRVolume()
[all …]
/dports/science/InsightToolkit/ITK-5.0.1/Modules/ThirdParty/MINC/src/libminc/volume_io/Volumes/
H A Dset_hyperslab.c26 VIO_Real voxels[] ) in convert_values_to_voxels() argument
99 VIO_Real *voxels; in set_volume_value_hyperslab_5d() local
109 FREE( voxels ); in set_volume_value_hyperslab_5d()
125 VIO_Real *voxels; in set_volume_value_hyperslab_4d() local
135 FREE( voxels ); in set_volume_value_hyperslab_4d()
149 VIO_Real *voxels; in set_volume_value_hyperslab_3d() local
158 FREE( voxels ); in set_volume_value_hyperslab_3d()
170 VIO_Real *voxels; in set_volume_value_hyperslab_2d() local
179 FREE( voxels ); in set_volume_value_hyperslab_2d()
188 VIO_Real *voxels; in set_volume_value_hyperslab_1d() local
[all …]
/dports/science/minc2/minc-release-2.2.00/volume_io/Volumes/
H A Dset_hyperslab.c21 Real voxels[] ) in convert_values_to_voxels() argument
94 Real *voxels; in set_volume_value_hyperslab_5d() local
104 FREE( voxels ); in set_volume_value_hyperslab_5d()
120 Real *voxels; in set_volume_value_hyperslab_4d() local
130 FREE( voxels ); in set_volume_value_hyperslab_4d()
144 Real *voxels; in set_volume_value_hyperslab_3d() local
153 FREE( voxels ); in set_volume_value_hyperslab_3d()
165 Real *voxels; in set_volume_value_hyperslab_2d() local
174 FREE( voxels ); in set_volume_value_hyperslab_2d()
183 Real *voxels; in set_volume_value_hyperslab_1d() local
[all …]
/dports/devel/py-trimesh/trimesh-3.5.25/trimesh/voxel/
H A Dcreation.py141 voxels = matrix[center[0] - radius:center[0] + radius + 1,
148 regions, n = ndimage.measurements.label(~voxels)
149 distance = ndimage.morphology.distance_transform_cdt(~voxels)
162 voxels = np.logical_or(voxels, internal)
164 return base.VoxelGrid(voxels, tr.translation_matrix(local_origin))
212 voxels = np.round(hits / pitch).astype(np.int64)
215 origin_index = voxels.min(axis=0)
216 voxels -= origin_index
217 encoding = enc.SparseBinaryEncoding(voxels)
/dports/science/openbabel/openbabel-3.1.1/src/formats/
H A Dopendxformat.cpp120 vector<int> voxels(3); in ReadMolecule() local
124 voxels[0] = atoi(vs[5].c_str()); in ReadMolecule()
125 voxels[1] = atoi(vs[6].c_str()); in ReadMolecule()
126 voxels[2] = atoi(vs[7].c_str()); in ReadMolecule()
177 int n = voxels[0]*voxels[1]*voxels[2]; in ReadMolecule()
203 gd->SetNumberOfPoints(voxels[0], voxels[1], voxels[2]); in ReadMolecule()
H A Dadfformat.cpp1148 int voxels[3]; in ReadSCFOrbitalGrid() local
1149 t41Data.GetNumberOfPoints(voxels[0], voxels[1], voxels[2]); in ReadSCFOrbitalGrid()
1150 for (int k = 0; k < voxels[2]; ++k) in ReadSCFOrbitalGrid()
1155 grid[k*voxels[0]*voxels[1] + j*voxels[0] + i]); in ReadSCFOrbitalGrid()
1185 int voxels[3]; in ReadSCFGrid() local
1186 t41Data.GetNumberOfPoints(voxels[0], voxels[1], voxels[2]); in ReadSCFGrid()
1187 for (int k = 0; k < voxels[2]; ++k) in ReadSCFGrid()
1192 grid[k*voxels[0]*voxels[1] + j*voxels[0] + i]); in ReadSCFGrid()
1219 int voxels[3]; in ReadSumFragGrid() local
1220 t41Data.GetNumberOfPoints(voxels[0], voxels[1], voxels[2]); in ReadSumFragGrid()
[all …]
/dports/science/py-nibabel/nibabel-3.2.1/nibabel/cifti2/
H A Dcifti2_axes.py436 voxels = None
747 as_array = np.asanyarray(voxels)
751 voxels = np.empty(len(voxels), dtype='object')
752 for idx in range(len(voxels)):
753 voxels[idx] = as_array[idx]
754 self.voxels = np.asanyarray(voxels, dtype='object')
794 if voxels.shape[0] != 0:
801 all_voxels[idx_parcel] = voxels
874 for name, voxels, vertices in zip(self.name, self.voxels, self.vertices):
925 for vox1, vox2 in zip(self.voxels, other.voxels))):
[all …]
/dports/math/py-matplotlib/matplotlib-3.4.3/examples/mplot3d/
H A Dvoxels.py23 voxels = cube1 | cube2 | link variable
26 colors = np.empty(voxels.shape, dtype=object)
33 ax.voxels(voxels, facecolors=colors, edgecolor='k')
/dports/graphics/ospray-studio/ospray_studio-0.9.1/sg/scene/volume/
H A DVolume.cpp30 std::vector<T> voxels(nVoxels); in loadVoxels() local
32 if (fread(voxels.data(), sizeof(T), nVoxels, file) != nVoxels) { in loadVoxels()
36 const auto minmax = std::minmax_element(begin(voxels), end(voxels)); in loadVoxels()
39 createChildData("data", dimensions, 0, voxels.data()); in loadVoxels()
H A DRawFileStructuredVolume.cpp17 std::vector<float> voxels(dimensions.product()); in generateVoxels() local
25 input.read((char *)voxels.data(), dimensions.product() * sizeof(float)); in generateVoxels()
31 return voxels; in generateVoxels()
/dports/math/py-matplotlib2/matplotlib-2.2.4/examples/mplot3d/
H A Dvoxels.py22 voxels = cube1 | cube2 | link variable
25 colors = np.empty(voxels.shape, dtype=object)
33 ax.voxels(voxels, facecolors=colors, edgecolor='k')
/dports/math/py-matplotlib2/matplotlib-2.2.4/lib/mpl_examples/mplot3d/
H A Dvoxels.py22 voxels = cube1 | cube2 | link variable
25 colors = np.empty(voxels.shape, dtype=object)
33 ax.voxels(voxels, facecolors=colors, edgecolor='k')
/dports/deskutils/treesheets/treesheets-1.0.2/lobster/src/
H A Dcubegen.cpp346 Voxels *voxels = nullptr; in AddCubeGen() local
355 voxels = NewWorld(size); in AddCubeGen()
357 if (!voxels) return Value(); in AddCubeGen()
358 voxels->palette.clear(); in AddCubeGen()
360 voxels->palette.insert(voxels->palette.end(), (byte4 *)p, ((byte4 *)p) + 255); in AddCubeGen()
368 if (!voxels) return Value(); in AddCubeGen()
373 if (pos < voxels->grid.dim) voxels->grid.Get(pos) = vox.w; in AddCubeGen()
389 vector<byte4> voxels; in AddCubeGen() local
420 wint((int)voxels.size() * 4 + 4); in AddCubeGen()
422 wint((int)voxels.size()); in AddCubeGen()
[all …]
/dports/graphics/ospray-studio/ospray_studio-0.9.1/sg/generator/
H A DWaveletVolume.cpp78 std::vector<float> voxels(dimensions.long_product()); in generateData() local
90 voxels[index] = getWaveletValue(objectCoordinates); in generateData()
100 volume.createChildData("data", dimensions, 0, voxels.data()); in generateData()
102 const auto minmax = std::minmax_element(begin(voxels), end(voxels)); in generateData()
/dports/audio/faust/faust-2.37.3/tools/physicalModeling/mesh2faust/vega/libraries/objMesh/
H A DobjMeshOffsetVoxels.cpp150 voxels.insert(v); in init()
206 for (vox = voxels.begin(); vox != voxels.end(); ++vox) // over all members of voxels in init()
215 voxels = voxeli; in init()
343 for (vox = voxels.begin(); vox != voxels.end(); ++vox) // over all members of voxels in buildUniqueListOfFaces()
391 for (vox = voxels.begin(); vox != voxels.end(); ++vox) // over all members of voxels in render()
535 for (aVoxel = voxels.begin(); aVoxel != voxels.end(); ++aVoxel) // over all voxels in generateCubicMesh()
592 for (aVoxel = voxels.begin(); aVoxel != voxels.end(); ++aVoxel) // over all voxels in generateCubicMesh()
747 for (aVoxel = voxels.begin(); aVoxel != voxels.end(); ++aVoxel) // over all voxels in generateCubicMesh()
799 for (aVoxel = voxels.begin(); aVoxel != voxels.end(); ++aVoxel) // over all voxels in generateCubicMesh()
954 for (aVoxel = voxels.begin(); aVoxel != voxels.end(); ++aVoxel) // over all voxels in generateInterpolationMasks()
[all …]
/dports/graphics/openvkl/openvkl-1.1.0/examples/
H A DvklTutorial.c320 float *voxels = malloc(numVoxels * sizeof(float)); in main() local
322 if (!voxels) { in main()
331 voxels[k * dimensions[0] * dimensions[1] + j * dimensions[2] + i] = in main()
335 vklNewData(device, numVoxels, VKL_FLOAT, voxels, VKL_DATA_DEFAULT, 0); in main()
341 voxels[k * dimensions[0] * dimensions[1] + j * dimensions[2] + i] = in main()
345 vklNewData(device, numVoxels, VKL_FLOAT, voxels, VKL_DATA_DEFAULT, 0); in main()
351 voxels[k * dimensions[0] * dimensions[1] + j * dimensions[2] + i] = in main()
355 vklNewData(device, numVoxels, VKL_FLOAT, voxels, VKL_DATA_DEFAULT, 0); in main()
379 free(voxels); in main()

12345678910>>...18