This site uses cookies to assist with navigation and your ability to provide feedback. Cookie Policy

Texture

Scripting example

Download these data files (here):

  • DataFile1_PT_Anonym.zip
  • DataFile1_PT_Anonym_RoiVolume_healthy.nii
  • DataFile1_PT_Anonym_RoiVolume_tumor.nii
  • DataFile1_PT_Anonym_TextureResults_LIFEx4.00.xls

 

Unzip the DataFile1_PT_Anonym.zip

Create the script file DataFile1_PT_Anonym_script.txt (see example of script below).

Edit the script and remplace all the "WD" by your working directory:

  • ex on Linux: WD=/home/me/LIFExControlQualitySet
  • ex on Mac: WD=/home/me/LIFExControlQualitySet
  • ex on Windows: WD=C:/Users/me/LIFExControlQualitySet

 

Run: 

  1. drag and drop the script file into LIFEx (left side after having selected texture protocol)
  2. results are saved in DataFile1_PT_Anonym_TextureResults_LIFEx4.00_fromScript.xls
  3. check results with our DataFile1_PT_Anonym_TextureResults_LIFEx4.00.xls file 

 

Here, an example of script:

#Common
LIFEx.texture.BinSize=3.125
LIFEx.texture.NbGrey=64.0
LIFEx.texture.sessionXls=WD/DataFile1_PT_Anonym_TextureResults_LIFEx4.00_fromScript.xls

# Absolute
LIFEx.texture.ButtonAbsolute=true
LIFEx.texture.MinBound=0.0
LIFEx.texture.MaxBound=20.0

# RelativeMeanSd
LIFEx.texture.ButtonRelativeMeanSd=false

# RelativeMinMax
LIFEx.texture.ButtonRelativeMinMax=false

# SpatialResampling (0 = no spatial resampling = native spacing voxels)
LIFEx.texture.SpatialResamplingZ=0
LIFEx.texture.SpatialResamplingY=0
LIFEx.texture.SpatialResamplingX=0

# GLCM
LIFEx.texture.GLCM.distanceWithNeighbours=1

# Patient0
LIFEx.texture.Img0=WD/DataFile1_PT_Anonym
LIFEx.texture.Img0Roi0=WD/DataFile1_PT_Anonym_RoiVolume_healthy.nii
LIFEx.texture.Img0Roi1=WD/DataFile1_PT_Anonym_RoiVolume_tumor.nii

Subcategories

Login Form