Skip to content

erudianart/DeformIt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

DeformIt - Tool for simulating ground truth labels and transformations via physical and statistical warps.

Preet S. Jassi, May 5 2011

DeformIt is a Matlab tool to generate a large data-set deformed images and ground truth segmentations for machine learning algorithms based on a single prototype image and ground truth segmentation. To deform 2D images, use 2D/DeformIt.m. To deform 3D images use 3D/DeformIt.m

To generate a large data-set of 2D images based on a single image and segmentation, run the following command in Matlab:

DeformIt(file, segmentation, nObs, WarpedImage, cp, RandomMorph, RandomRange, alpha1, t, Noise, NoiseType, NM,NV,ND,NonUniform, ncp, NonUniformStrength)

where:

  • file - the filename
  • segmentation - the segmentation name or empty string
  • nObs - the number of images you want to generate
  • WarpedImage - 1 if the image is to be deformed and 0 if the image is not to be deformed (warped)
  • cp - the number of control points per axis of the image if you do not want to manually specify the control points
  • RandomMorph - 1 if you want the deformation to be Random instead of Vibrational / Variational
  • RandomRange - integer between [0,1] for the range of the random vectors where 1 is half the distance between control points
  • alpha1 - weight of vibrational vs variational when calculating the displacement vectors in the range [0,1]
  • t - number of variational modes used in describing the deformation or the fractional variance if less than one, value between [0, nObs^2]
  • Noise - 1 if you want to add noise to the image
  • NoiseType - gaussian, poisson, salt & pepper, speckle
  • NM - the mean of the noise for guassian noise
  • NV - the variance for guassian and speckle
  • ND - density for salt and pepper
  • NonUniform - 1 if you want non uniformity intensities added to simulate the imhomogenity found in magentic resonance images
  • ncp - the number of control points for the non uniformity
  • NonUniformStrength - the strength of the non uniformity [0,1]

You can also specify landmarks in a text file landmarks.txt and the new location of those landmarks will be specified.

Generating deformed 3D images is very similar. Look at DeformIt.m in the 3D folder for information about the parameters.

You can read the paper here for more information about DeformIt

About

Tool for simulating ground truth labels and transformations via physical and statistical warps

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages