Utilities#

addCTnoise#

function proj=addCTnoise(proj, varargin)
ADDCTNOISE adds realistic noise to CT projections
  addCTnoise(PROJ):  adds Poisson and Gaussian noise to the input data.

  addCTnoise(PROJ,OPTS,VAL,..): adds noise with OPT options.
                                Possible options are :
  'Poisson' : changes the average photon count for Poisson noise. Default
              value is 1e5
  'Gaussian': changes the mean and standard deviation of the electronic
              Gaussian noise. Default value is [0 0.5]

The computation of the noise projection follows
Adaptive-weighted total variation minimization for sparse data toward low-dose x-ray computed tomography image reconstruction
doi: 10.1088/0031-9155/57/23/7923
and references in that work.

Source: MATLAB/Utilities/addCTnoise.m

im3DDenoise#

function [ imgO ] = im3DDenoise( img,type,varargin )
IMDENOISE3D removes noise of image with different methods
  Currently only TV is supported. Input arguments are the image, the type
  of denoising ('TV' only now) and the parameters for the denoising,
  being number of iterations and hyperparameter currently available.

Source: MATLAB/Utilities/im3DDenoise.m

im2DDenoise#

function img = im2DDenoise(img, type, kernelsize)
img2DDenoise removes noise of image with 2D kernel-based methods
  Currently only median and average filter is supported.
      type: 'median' or 'average'
      kernelsize: filter kernel size

Source: MATLAB/Utilities/im2DDenoise.m

im3Dnorm#

function n=im3Dnorm(img,normind,varargin)
IMAGE3DNORM computes the desired image norm
  IMAGE3DNORM(IMG,NORMIND) computes the norm if image IMG using the norm
  defined in NORMING

  IMG         A 3D image
  NORMIND     'LN': N norm
              'TV': TV norm

Source: MATLAB/Utilities/im3Dnorm.m

plotImg#

function plotImg(img,varargin)
PLOTIMG plots a 3D image in slices
  PLOTIMG(IMG) plots 3D image IMG looping through X axis (first
  dimension)
  PLOTIMG(IMG,OPT,VAL,...) uses options and values for plotting. The
  possible options in OPT are:

  'Step':     Sets the step size between slice and slice. Step is 1 by
              default.

  'Dim':      Sets the dimensions in which the function iterates through.
              Default is 1 or 'X', possibilities are 2,3 or 'Y','Z'
              respectively.

  'Savegif':  With an string in VAL, saves the image as .gif with
              VAL as filename
  'Colormap': Sets the colormap. Possible values for VAL are the names of
              the standard MATLAB colormaps, the names in the perceptually
              uniform colormaps tool or a custom colormap, being this last
              one a 3xN matrix. Default is GRAY
  'Clims':    a 2x1 matrix setting the upper and lower limits of the
              colors. The default computes the lower and upper percentile
              of data, in 1% and 99% and sets the limits to that.
  'Slice'     Plots a single slice of the data. Overwrites Step.

Source: MATLAB/Utilities/plotImg.m

plotProj#

function plotProj(proj,alpha,varargin)
PLOTPROJ plots the projection data

  PLOTPROJ(PROJ,ALPHA) plots projection data PROJ over radians ALPHA,
                       where length(ALPHA) == size(PROJ,3)

  PLOTPROJ(PROJ,ALPHA,OPTS,VAL,...) Allows user specified OPTS options
                                    with corresponding VAL values.
          Posible options in OPTS are:

  'Colormap': Sets the colormap. Possible values for VAL are the names of
              the standard MATLAB colormaps, the names in the perceptually
              uniform colormaps tool or a custom colormap, being this last
              one a 3xN matrix. Default is GRAY
  'Clims':    a 2x1 matrix setting the upper and lower limits of the
              colors. The default is the limits of the data.
  'Step':     Sets the step size between slice and slice. Step is 1 by
              default.
  'Savegif':  With an string in VAL, saves the image as .gif with
              VAL as filename
  'Slice'  :  Plot a single projection, given by index VAL. Should not be
              used with 'Step',overwrites it.

Source: MATLAB/Utilities/plotProj.m

plotSinogram#

function plotSinogram(proj,alpha,varargin)
PLOTSINOGRAM plots the sinogram of the projection data

PLOTSINOGRAM(PROJ,ALPHA) plots the sinogram of projection data PROJ
over radians ALPHA, where length(ALPHA) == size(PROJ,3). This does the
same as PLOTPROJ, but with the input transposed and sliced along a
different axis: instead of showing, for each angle, the U-V detector
image, PLOTSINOGRAM shows, for each detector row (V), the U-angle
sinogram (i.e. the detector's horizontal readout stacked over all
acquisition angles).

PLOTSINOGRAM(PROJ,ALPHA,OPTS,VAL,...) Allows user specified OPTS options
with corresponding VAL values.
Posible options in OPTS are:

'Colormap': Sets the colormap. Possible values for VAL are the names of
the standard MATLAB colormaps, the names in the perceptually
uniform colormaps tool or a custom colormap, being this last
one a 3xN matrix. Default is GRAY
'Clims': a 2x1 matrix setting the upper and lower limits of the
colors. The default is the limits of the data.
'Step': Sets the step size between slice and slice. Step is 1 by
default.
'Savegif': With an string in VAL, saves the image as .gif with
VAL as filename
'Slice' : Plot a single sinogram (single detector row), given by
index VAL. Should not be used with 'Step', overwrites it.

Source: MATLAB/Utilities/plotSinogram.m

sheppLogan3D#

function [p,ellipse]= sheppLogan3D( sz,type )
SHEPPLOGAN3D(SIZE,TYPE) returns the shepp logan phantom, defined by size
SIZEand type :

     'Shepp-Logan'            A test image used widely by researchers in
                              tomography
     'Modified Shepp-Logan'   (default) A variant of the Shepp-Logan phantom
                              in which the contrast is improved for better
                              visual perception.
     'yu-ye-wang'             Another version of the modified Shepp-Logan
                              phantom from "Katsevich-Type Algorithms for
                              Variable Radius Spiral Cone-BeamCT"

Default values are 128^3 and 'Modified Shepp-Logan'

Source: MATLAB/Utilities/sheppLogan3D.m

cropCBCT#

function img=cropCBCT(img,geo)
cropCBCT(img,geo) will crop the parts of the image that will not have
clear information after the reconstruction. It sets to zero everything
outside the cylinder constrained in the image, and crops a small cone
shape on top and bottom of the image.

Source: MATLAB/Utilities/cropCBCT.m

out_of_FOV_mask#

function result = out_of_FOV_mask(img, geo, dia)
ROI_mask=Cylindrical Mask to Input image matrix
Date: 2015-10-22
Author: Yi Du (yi.du@hotmail.com)
Modified: Ander Biguri

Source: MATLAB/Utilities/out_of_FOV_mask.m

Measure_Quality#

function [qualMeas]=Measure_Quality(res_prev,res,QualMeasOpts)

No help text.

Source: MATLAB/Utilities/Quality_measures/Measure_Quality.m

GpuIds#

classdef GpuIds
GpuIds
Usage:
 To select GPUIDs of 'GeForce RTX 2080 Ti',
   gpuids = GpuIds('GeForce RTX 2080 Ti');
 To select GPUIDs of all installed GPUs,
   gpuids = GpuIds();

Source: MATLAB/Utilities/GPU/GpuIds.m

getGpuIds#

function gpuids = getGpuIds(gpuname)

No help text.

Source: MATLAB/Utilities/GPU/getGpuIds.m

getGpuNames#

function names = getGpuNames()

No help text.

Source: MATLAB/Utilities/GPU/getGpuNames.m

citeme#

function  citeme( func_name ,bib)
CITEME(FUCTIONAME) gives the bibliographic reference of the function being
used.

Source: MATLAB/Utilities/citeme.m