Skip to content

Commit b282e0b

Browse files
committed
fix typos
including incorrect `proj` array shapes described in docstrings
1 parent ce640c8 commit b282e0b

7 files changed

Lines changed: 12 additions & 12 deletions

File tree

Common/CUDA/GD_TV.cu

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -307,12 +307,12 @@ do { \
307307
size_t mem_free=mem_GPU_global-mem_auxiliary;
308308

309309
splits=(unsigned int)(ceil(((float)(3*mem_size_image)/(float)(deviceCount))/mem_free));
310-
// Now, there is an overhead here, as each splits should have 2 slices more, to accoutn for overlap of images.
310+
// Now, there is an overhead here, as each splits should have 2 slices more, to account for overlap of images.
311311
// lets make sure these 2 slices fit, if they do not, add 1 to splits.
312312
slices_per_split=(image_size[2]+deviceCount*splits-1)/(deviceCount*splits);
313313
mem_img_each_GPU=(mem_slice_image*(slices_per_split+buffer_length*2));
314314

315-
// if the new stuff does not fit in the GPU, it measn we are in the edge case where adding that extra slice will overflow memory
315+
// if the new stuff does not fit in the GPU, it means we are in the edge case where adding that extra slice will overflow memory
316316
if (mem_GPU_global< 3*mem_img_each_GPU+mem_auxiliary){
317317
// one more split should do the job, as its an edge case.
318318
splits++;

MATLAB/Demos/d16_2Dtomography.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@
6262
angles=linspace(0,2*pi,100);
6363
phantom=single(phantom('Modified Shepp-Logan',geo.nVoxel(1)));
6464
projections=Ax(phantom,geo,angles);
65-
%% recosntruct
65+
%% reconstruct
6666

6767
imgOSSART=OS_SART(projections,geo,angles,40);
6868
imgASDPOCS=ASD_POCS(projections,geo,angles,40);
@@ -107,7 +107,7 @@
107107
phantom=single(phantom('Modified Shepp-Logan',geo.nVoxel(1)));
108108
% phantom=cat(3,phantom,phantom);
109109
projections=Ax(phantom,geo,angles,'interpolated');
110-
%% recosntruct
110+
%% reconstruct
111111

112112
imgOSSART=OS_SART(projections,geo,angles,40);
113113
% in 2D, the TV norm minimization happens in CPU, this causes the

MATLAB/Demos/d24_Algorithms06.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
%
33
%
44
% This demo presents the TIGRE capability of using image priors for
5-
% CT recosntruction. The most known algorithm for this is PICCS
5+
% CT reconstruction. The most known algorithm for this is PICCS
66
%
77
%--------------------------------------------------------------------------
88
%--------------------------------------------------------------------------

Python/demos/d16_2Dtomography.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@
6464
head = sample_loader.load_head_phantom(geo.nVoxel)
6565
projections = tigre.Ax(head, geo, angles)
6666
tigre.plotSinogram(projections, 0)
67-
#%% recosntruct
67+
#%% reconstruct
6868

6969
imgOSSART = algs.ossart(projections, geo, angles, 40)
7070
imgCGLS = algs.cgls(projections, geo, angles, 40)
@@ -105,7 +105,7 @@
105105
angles = np.linspace(0, 2 * np.pi, 100)
106106
head = sample_loader.load_head_phantom(geo.nVoxel)
107107
projections = tigre.Ax(head, geo, angles)
108-
#%% recosntruct
108+
#%% reconstruct
109109

110110
imgOSSART = algs.ossart(projections, geo, angles, 40)
111111
imgCGLS = algs.cgls(projections, geo, angles, 40)

Python/tigre/algorithms/ista_algorithms.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ class FISTA(IterativeReconAlg):
1919
Parameters
2020
----------
2121
:param proj: (np.ndarray, dtype=np.float32)
22-
Input data, shape = (geo.nDector, nangles)
22+
Input data, shape = (nangles, geo.nDetector)
2323
2424
:param geo: (tigre.geometry)
2525
Geometry of detector and image (see examples/Demo code)

Python/tigre/algorithms/iterative_recon_alg.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ class IterativeReconAlg(object):
3636
Parameters
3737
----------
3838
:param proj: (np.ndarray, dtype=np.float32)
39-
Input data, shape = (geo.nDector, nangles)
39+
Input data, shape = (nangles, geo.nDetector)
4040
4141
:param geo: (tigre.geometry)
4242
Geometry of detector and image (see examples/Demo code)

Python/tigre/algorithms/pocs_algorithms.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ class initASD_POCS(IterativeReconAlg):
2020
Parameters
2121
----------
2222
:param proj: (np.ndarray, dtype=np.float32)
23-
Input data, shape = (geo.nDector, nangles)
23+
Input data, shape = (nangles, geo.nDetector)
2424
2525
:param geo: (tigre.geometry)
2626
Geometry of detector and image (see examples/Demo code)
@@ -192,7 +192,7 @@ class initPICCS(IterativeReconAlg):
192192
Parameters
193193
----------
194194
:param proj: (np.ndarray, dtype=np.float32)
195-
Input data, shape = (geo.nDector, nangles)
195+
Input data, shape = (nangles, geo.nDetector)
196196
197197
:param geo: (tigre.geometry)
198198
Geometry of detector and image (see examples/Demo code)
@@ -439,7 +439,7 @@ class initPCSD(IterativeReconAlg):
439439
Parameters
440440
----------
441441
:param proj: (np.ndarray, dtype=np.float32)
442-
Input data, shape = (geo.nDector, nangles)
442+
Input data, shape = (nangles, geo.nDetector)
443443
444444
:param geo: (tigre.geometry)
445445
Geometry of detector and image (see examples/Demo code)

0 commit comments

Comments
 (0)