SlideShare a Scribd company logo
1 of 11
Download to read offline
madrid institute for advanced studies materials
c/ Eric Kandel, 2 · E28906 Getafe - Madrid · Spain
telephone +34 91 549 34 22 · fax +34 91 550 30 47
web www.materials.imdea.org · e-mail contact.materials@imdea.org
HOW TO MANUALLY EQUALIZE THE HISTOGRAMS
OF TWO (OR MORE) SUBVOLUMES, MEASURED WITH
XCT, USING IMAGEJ
Javier García Molleja
IMDEA Materials Institute – X-Ray Laboratory
First of all, it is supposed that both subvolumes (of the same sample) were acquired
with an overlapping region, that is, each measurement included part the same region.
This technique is necessary when the sample is too long and one measurement is not
enough.
Second, this manual considers that both subvolumes were acquired under similar
conditions and their dimensions, i.e., height and width, are equal.
Now, let’s start with the equalization. Open the ImageJ software.
File -> Import -> Raw… (and use the browser in order to select the subvolumes). Click
Open.
A dialog window is shown. Please, identify the image bit type, the width (in pixels), the
height (in pixels) and the number of slices. Normally, these values are written at the end
of the filename (or they are automatically loaded). It is supposed that these subvolumes
are generated after reconstruction, so the file is saved as vol (then click Little-endian
byte order). Click OK.
It is important to say that in this example the sample was measured in three subvolumes
but the equalization of only two of them is presented. The manual equalization of
subvolumes is a pairwise process, so when two are equalized the third one will be
equalized, and so on.
2
The volume is loaded in the TOP-BOTTOM view. Now, it is time to identify which
subvolume represents the top part of the sample and which one represents the middle
part of the sample.
TOP REGION MIDDLE REGION
Next step is to locate a slice, without artifacts, repeated in both subvolumes. If the
overlapped region is in the upper side of the sample, the identical slice must be at the
end of the top subvolume and at the beginning of the middle subvolume. Please, write
the number of slice in both cases.
Of course, the overlapped region will contain many slices. The choice of two identical
slices depends on you (or if one volume is better than the other and you want to
minimize the bad one…)
3
TOP SLICE #1916 MIDDLE SLICE #432
Image -> Duplicate… these identical slices. Please, give them different names in order
to know which is which and do not check Duplicate stack option.
In the present case, there is a xls file named (ask me if you want to do by yourself)
XX_Gray_level_equalization_YY_(REF_ZZ)_v02.xls
XX means the number of file used in the complete volume (01 in the present case; the
equalization of the concatenated top-middle volume with the bottom subvolume will be
02); YY is the subvolume to be histogram-equalized and ZZ is the subvolume of
reference. In this moment, you can select one of these slices as reference, i.e., the one
with the “true” histogram. In this case, randomly, top subvolume is the one to be
equalized and the middle subvolume has the “real” histogram.
Image -> Type -> 8-bit the slice of the subvolume of reference (the middle one in this
example).
Analyze -> Histogram in order to obtain the histogram of this slice.
4
Click List in order to obtain the histogram in a numerical representation.
In this window go to Edit -> Select All and then Edit -> Copy and go to the xls file and
then to the REF_middle_MAT+BKG_8b tab. Paste the values at the ‘bin start’ and
‘count’ columns.
Now, adjust the X and Y ranges of the three plots, namely, BKG (stands for the peak of
the histogram identified as the gray values of the background), MAT (stands for the
peak of the histogram identified as the gray values of the material) and ALL (stands for
the complete histogram).
To adjust the plots you may need to check:
https://excel.tips.net/T003031_Changing_the_Axis_Scale.html
5
There are two boxes with black borders: one for the background and another for the
material. Please, give for RANGE BKG and for RANGE MAT extreme gray values (X1
is the minimum one and X2 is the maximum one), far away for each peak. Normally,
they can be selected similar to the X and Y ranges of the plots. On the other hand, for
THR BKG and THR MAT you should select the threshold of the peak, that is, from
zero counts to the selected value all gray values will be considered not belonging to the
peak. These values will be dependent on the user expertise, so please, feel free to
change or adjust to the most suitable for you and for the present subvolumes!
This process will be repeated with the slice to be equalized. Start with the histogram,
open the list, select the data and copy them in the up_MAT+BKG_16b tab in the Excel
file (in the ‘bin start’ and ‘count’ columns).
6
Now, you need to do the same than before: adjust the X and Y ranges of the three plots,
write proper values for RANGE BKG X1, X2 and for RANGE MAT X1 and X2 and fill
the values corresponding to THR BKG and THR MAT. Hey! Bear in mind the decimal
separator is ‘.’ in ImageJ.
If you go to the Hoja1 tab you will see the column named ‘Iteracion’. Both, x and y
values are in blue color.
Image -> Duplicate… the slice from the top subvolume.
Image -> Adjust -> Brightness/Contrast…
7
Click the Set button and put ‘Iteracion x’ as Minimum displayed value and ‘Iteracion y’
as Maximum displayed value. Select Automatic in Unsigned 16-bit range and do not
check Propagate to all other open images. In the present case the blue numbers are 3492
and 40124. Click OK.
Image -> Type -> 8-bit to this duplicated slice.
Analyze -> Histogram and click List button in order to select all columns and copy
them to up_MAT+BKG_8b tab in the Excel file (in the ‘bin start’ and ‘count’
columns). Now, repeat the same than before (adjust the ranges of all the plots, insert
proper values for RANGE BKG -X1 and X2-, RANGE MAT -X1 and X2- and select
THR BKG and THR MAT values).
8
In the gray cells near to the ones with the black border there are a couple of numbers,
namely, INT BKG and INT MAT. Please, write these values (129.19 and 226.57 in the
present case) in Hoja1 tab, in MEDIA A’ and in MEDIA B’ rows (they are in gray
color, near to the blue values).
Pay attention to the ‘correction’ row, if its absolute value is lesser than 1 both slices are
equalized by their histograms. If its absolute value is greater than 1, a second iteration
will be needed. In the present case, correction is -1.26006, so both slices are not well
equalized.
9
The row number 5 is automatically filled and you need to copy the new blue values, i.e.,
‘Iteracion x’ and ‘Iteracion y’ values.
Go to the slice from the top subvolume (the one of 16-bit).
Image -> Duplicate… for a second time.
Image -> Adjust -> Brightness/Contrast… and click the Set button in order to put these
new couple of minimum and maximum displayed values. In the present case, these new
numbers are, respectively, 3673 and 40305. Click OK.
Image -> Type -> 8-bit. After this, the process is repeated: obtain the histogram, click
the List button, select all data and copy them to the up_MAT+BKG_8b tab in the ‘bin
start’ and ‘count’ columns. See the change in the gray cells.
Write INT BKG and INT MAT in Hoja1 tab in MEDIA A’ and MEDIA B’ columns (in
the row number 5).
In the present case ‘correction’ has a value of 0.09 so the histograms are equalized and a
third iteration is not necessary. However, if you are too obsesive try to repeat the
process until ‘correction’ value tends to 0. Furthermore, you need to copy and paste this
row number 5 in the number 6 in order to continue the process!
I know, this is a repetitive and confusing task but it is a very confident process! Now it
is time to equalize both subvolumes. Remember that we were working with slices so
far. First of all, go to the reference subvolume (the middle one in this example).
Image -> Type -> 8-bit.
10
Go to the other subvolume, that is, the top one.
Image -> Adjust -> Brightness/Contrast… and click the Set button. Use the two last
blue values (remember, 3673 and 40305) in order to set the minimum and maximum
displayed values and click OK.
Image -> Type -> 8-bit in order to match the bit type of both equalized subvolumes.
TOP BOTTOM
Now it is time to concatenate both subvolumes! Sorry, but these next steps are detailed
in another manual. Get it!
After concatenation, you can adjust the brightness and the contrast in order to optimize
them and do a rescale (the minumum gray value will be zero and the maximum gray
value will be 255).
11
Image -> Adjust -> Brightness/Contrast… and go to a slice with neither shadows nor
artifacts, click Auto button and then the Apply button. And save the concatenated
volume! Furthermore, save the Excel file!
(Thanks to Juan Ignacio Caballero for the the critical reading of this manual and several
useful tips.)

More Related Content

What's hot

Operational research on Assignment ppt
Operational research on Assignment pptOperational research on Assignment ppt
Operational research on Assignment pptNirali Solanki
 
Hungarian Method
Hungarian MethodHungarian Method
Hungarian MethodAritra7469
 
Assignment Poblems
Assignment Poblems Assignment Poblems
Assignment Poblems vkabre
 
Assignment method
Assignment methodAssignment method
Assignment methodR A Shah
 
Assignment Chapter - Q & A Compilation by Niraj Thapa
Assignment Chapter  - Q & A Compilation by Niraj ThapaAssignment Chapter  - Q & A Compilation by Niraj Thapa
Assignment Chapter - Q & A Compilation by Niraj ThapaCA Niraj Thapa
 
Assignment problem
Assignment problemAssignment problem
Assignment problemAbu Bashar
 
Operations research : Assignment problem (One's method) presentation
Operations research : Assignment problem (One's method) presentationOperations research : Assignment problem (One's method) presentation
Operations research : Assignment problem (One's method) presentationPankaj Kumar
 
Graphing with a calculator
Graphing with a calculatorGraphing with a calculator
Graphing with a calculatorleanncox16
 
Vteke Color Meter color difference measurement tool
Vteke Color Meter color difference measurement toolVteke Color Meter color difference measurement tool
Vteke Color Meter color difference measurement toolRose He
 
Getting Started With XLSIM
Getting Started With XLSIMGetting Started With XLSIM
Getting Started With XLSIManalycorp
 
Renaming in bridge
Renaming in bridgeRenaming in bridge
Renaming in bridgeHutchison
 
How to combine interpolation and regression graphs in R
How to combine interpolation and regression graphs in RHow to combine interpolation and regression graphs in R
How to combine interpolation and regression graphs in RDougLoqa
 

What's hot (15)

Operational research on Assignment ppt
Operational research on Assignment pptOperational research on Assignment ppt
Operational research on Assignment ppt
 
Hungarian Method
Hungarian MethodHungarian Method
Hungarian Method
 
Assignment Poblems
Assignment Poblems Assignment Poblems
Assignment Poblems
 
Assignment method
Assignment methodAssignment method
Assignment method
 
Assignment Chapter - Q & A Compilation by Niraj Thapa
Assignment Chapter  - Q & A Compilation by Niraj ThapaAssignment Chapter  - Q & A Compilation by Niraj Thapa
Assignment Chapter - Q & A Compilation by Niraj Thapa
 
Assignment problem
Assignment problemAssignment problem
Assignment problem
 
Assignment Problem
Assignment ProblemAssignment Problem
Assignment Problem
 
Operations research : Assignment problem (One's method) presentation
Operations research : Assignment problem (One's method) presentationOperations research : Assignment problem (One's method) presentation
Operations research : Assignment problem (One's method) presentation
 
Graphing with a calculator
Graphing with a calculatorGraphing with a calculator
Graphing with a calculator
 
Vteke Color Meter color difference measurement tool
Vteke Color Meter color difference measurement toolVteke Color Meter color difference measurement tool
Vteke Color Meter color difference measurement tool
 
Assignment problem
Assignment problemAssignment problem
Assignment problem
 
Lar calc10 ch03_sec6
Lar calc10 ch03_sec6Lar calc10 ch03_sec6
Lar calc10 ch03_sec6
 
Getting Started With XLSIM
Getting Started With XLSIMGetting Started With XLSIM
Getting Started With XLSIM
 
Renaming in bridge
Renaming in bridgeRenaming in bridge
Renaming in bridge
 
How to combine interpolation and regression graphs in R
How to combine interpolation and regression graphs in RHow to combine interpolation and regression graphs in R
How to combine interpolation and regression graphs in R
 

Similar to Manual Equalization of XCT Subvolume Histograms in ImageJ

2.6b scatter plots and lines of best fit
2.6b scatter plots and lines of best fit2.6b scatter plots and lines of best fit
2.6b scatter plots and lines of best fithartcher
 
Magazine awr-ims-3
Magazine awr-ims-3Magazine awr-ims-3
Magazine awr-ims-3Sam Sambala
 
1 P a g e 2105 ENG, Mechanics of.docx
1  P a g e   2105 ENG, Mechanics of.docx1  P a g e   2105 ENG, Mechanics of.docx
1 P a g e 2105 ENG, Mechanics of.docxhoney725342
 
ENGR 102B Microsoft Excel Proficiency LevelsPlease have your in.docx
ENGR 102B Microsoft Excel Proficiency LevelsPlease have your in.docxENGR 102B Microsoft Excel Proficiency LevelsPlease have your in.docx
ENGR 102B Microsoft Excel Proficiency LevelsPlease have your in.docxYASHU40
 
SPSS PRESENTATION.PPT.pptx
SPSS PRESENTATION.PPT.pptxSPSS PRESENTATION.PPT.pptx
SPSS PRESENTATION.PPT.pptxBMmugal
 
LabsLab5Lab5_Excel_SH.htmlLab 5 SpreadsheetsLearning Outcomes.docx
LabsLab5Lab5_Excel_SH.htmlLab 5 SpreadsheetsLearning Outcomes.docxLabsLab5Lab5_Excel_SH.htmlLab 5 SpreadsheetsLearning Outcomes.docx
LabsLab5Lab5_Excel_SH.htmlLab 5 SpreadsheetsLearning Outcomes.docxDIPESH30
 
111249-140817070204-phpapp02.pdf
111249-140817070204-phpapp02.pdf111249-140817070204-phpapp02.pdf
111249-140817070204-phpapp02.pdfBMmugal
 
SPSS How to use Spss software
SPSS How to use Spss softwareSPSS How to use Spss software
SPSS How to use Spss softwareDebashis Baidya
 
1122230 question
1122230 question1122230 question
1122230 questionlpss0513
 
Introduction to micro soft Training ms Excel.ppt
Introduction to micro soft Training ms Excel.pptIntroduction to micro soft Training ms Excel.ppt
Introduction to micro soft Training ms Excel.pptdejene3
 
Photoshop Tutorial Displacement Maps
Photoshop Tutorial  Displacement MapsPhotoshop Tutorial  Displacement Maps
Photoshop Tutorial Displacement Mapstvawler
 
Instructions(1) Work through the pages below.(2) Use the us_demog.docx
Instructions(1) Work through the pages below.(2) Use the us_demog.docxInstructions(1) Work through the pages below.(2) Use the us_demog.docx
Instructions(1) Work through the pages below.(2) Use the us_demog.docxdirkrplav
 

Similar to Manual Equalization of XCT Subvolume Histograms in ImageJ (20)

2.6b scatter plots and lines of best fit
2.6b scatter plots and lines of best fit2.6b scatter plots and lines of best fit
2.6b scatter plots and lines of best fit
 
Patchantenna
PatchantennaPatchantenna
Patchantenna
 
Sampling
SamplingSampling
Sampling
 
MATLAB
MATLABMATLAB
MATLAB
 
Tutorial ads
Tutorial adsTutorial ads
Tutorial ads
 
Magazine awr-ims-3
Magazine awr-ims-3Magazine awr-ims-3
Magazine awr-ims-3
 
1 P a g e 2105 ENG, Mechanics of.docx
1  P a g e   2105 ENG, Mechanics of.docx1  P a g e   2105 ENG, Mechanics of.docx
1 P a g e 2105 ENG, Mechanics of.docx
 
ENGR 102B Microsoft Excel Proficiency LevelsPlease have your in.docx
ENGR 102B Microsoft Excel Proficiency LevelsPlease have your in.docxENGR 102B Microsoft Excel Proficiency LevelsPlease have your in.docx
ENGR 102B Microsoft Excel Proficiency LevelsPlease have your in.docx
 
SPSS PRESENTATION.PPT.pptx
SPSS PRESENTATION.PPT.pptxSPSS PRESENTATION.PPT.pptx
SPSS PRESENTATION.PPT.pptx
 
LabsLab5Lab5_Excel_SH.htmlLab 5 SpreadsheetsLearning Outcomes.docx
LabsLab5Lab5_Excel_SH.htmlLab 5 SpreadsheetsLearning Outcomes.docxLabsLab5Lab5_Excel_SH.htmlLab 5 SpreadsheetsLearning Outcomes.docx
LabsLab5Lab5_Excel_SH.htmlLab 5 SpreadsheetsLearning Outcomes.docx
 
111249-140817070204-phpapp02.pdf
111249-140817070204-phpapp02.pdf111249-140817070204-phpapp02.pdf
111249-140817070204-phpapp02.pdf
 
SPSS How to use Spss software
SPSS How to use Spss softwareSPSS How to use Spss software
SPSS How to use Spss software
 
1122230 question
1122230 question1122230 question
1122230 question
 
Introduction to micro soft Training ms Excel.ppt
Introduction to micro soft Training ms Excel.pptIntroduction to micro soft Training ms Excel.ppt
Introduction to micro soft Training ms Excel.ppt
 
Photoshop Tutorial Displacement Maps
Photoshop Tutorial  Displacement MapsPhotoshop Tutorial  Displacement Maps
Photoshop Tutorial Displacement Maps
 
P spice tutorialhkn
P spice tutorialhknP spice tutorialhkn
P spice tutorialhkn
 
Otsu binarization
Otsu binarizationOtsu binarization
Otsu binarization
 
Instructions(1) Work through the pages below.(2) Use the us_demog.docx
Instructions(1) Work through the pages below.(2) Use the us_demog.docxInstructions(1) Work through the pages below.(2) Use the us_demog.docx
Instructions(1) Work through the pages below.(2) Use the us_demog.docx
 
Axis vm stepbystep
Axis vm stepbystepAxis vm stepbystep
Axis vm stepbystep
 
Session02
Session02Session02
Session02
 

More from Javier García Molleja

Highly thermal conductive Boron Nitride/Polyrotaxane encapsulated PEG-based ...
Highly thermal conductive Boron Nitride/Polyrotaxane encapsulated  PEG-based ...Highly thermal conductive Boron Nitride/Polyrotaxane encapsulated  PEG-based ...
Highly thermal conductive Boron Nitride/Polyrotaxane encapsulated PEG-based ...Javier García Molleja
 
PLA aerogel as a universal support for the typical organic phase change ener...
PLA aerogel as a universal support for the typical organic phase change  ener...PLA aerogel as a universal support for the typical organic phase change  ener...
PLA aerogel as a universal support for the typical organic phase change ener...Javier García Molleja
 
Graphene Functionalization of Polyrotaxane-Encapsulated PEG-Based PCMs: Fabri...
Graphene Functionalization of Polyrotaxane-Encapsulated PEG-Based PCMs: Fabri...Graphene Functionalization of Polyrotaxane-Encapsulated PEG-Based PCMs: Fabri...
Graphene Functionalization of Polyrotaxane-Encapsulated PEG-Based PCMs: Fabri...Javier García Molleja
 
Unveiling the structure, chemistry, and formation mechanism of an in-situ pho...
Unveiling the structure, chemistry, and formation mechanism of an in-situ pho...Unveiling the structure, chemistry, and formation mechanism of an in-situ pho...
Unveiling the structure, chemistry, and formation mechanism of an in-situ pho...Javier García Molleja
 
El rol de la tomografía en la industria: aplicaciones aeronáuticas y en el se...
El rol de la tomografía en la industria: aplicaciones aeronáuticas y en el se...El rol de la tomografía en la industria: aplicaciones aeronáuticas y en el se...
El rol de la tomografía en la industria: aplicaciones aeronáuticas y en el se...Javier García Molleja
 
How to make a manual binary segmentation for an XCT reconstructed volume with...
How to make a manual binary segmentation for an XCT reconstructed volume with...How to make a manual binary segmentation for an XCT reconstructed volume with...
How to make a manual binary segmentation for an XCT reconstructed volume with...Javier García Molleja
 
Una introducción a la Tomografía Computarizada de Rayos X
Una introducción a la Tomografía Computarizada de Rayos XUna introducción a la Tomografía Computarizada de Rayos X
Una introducción a la Tomografía Computarizada de Rayos XJavier García Molleja
 
Unidad 5: impulso y cantidad de movimiento
Unidad 5: impulso y cantidad de movimientoUnidad 5: impulso y cantidad de movimiento
Unidad 5: impulso y cantidad de movimientoJavier García Molleja
 
Unidad 4: trabajo, energía y potencia
Unidad 4: trabajo, energía y potenciaUnidad 4: trabajo, energía y potencia
Unidad 4: trabajo, energía y potenciaJavier García Molleja
 
Unidad 1: descripción del mundo físico
Unidad 1: descripción del mundo físicoUnidad 1: descripción del mundo físico
Unidad 1: descripción del mundo físicoJavier García Molleja
 
Unit 1: Description of the physical world
Unit 1: Description of the physical worldUnit 1: Description of the physical world
Unit 1: Description of the physical worldJavier García Molleja
 
Laboratorio de Rayos X: caracterización de materiales
Laboratorio de Rayos X: caracterización de materialesLaboratorio de Rayos X: caracterización de materiales
Laboratorio de Rayos X: caracterización de materialesJavier García Molleja
 
How to manually align an XCT reconstructed volume with ImageJ
How to manually align an XCT reconstructed volume with ImageJHow to manually align an XCT reconstructed volume with ImageJ
How to manually align an XCT reconstructed volume with ImageJJavier García Molleja
 
Directrices para la realización del informe de las prácticas de laboratorio
Directrices para la realización del informe de las prácticas de laboratorioDirectrices para la realización del informe de las prácticas de laboratorio
Directrices para la realización del informe de las prácticas de laboratorioJavier García Molleja
 

More from Javier García Molleja (20)

Highly thermal conductive Boron Nitride/Polyrotaxane encapsulated PEG-based ...
Highly thermal conductive Boron Nitride/Polyrotaxane encapsulated  PEG-based ...Highly thermal conductive Boron Nitride/Polyrotaxane encapsulated  PEG-based ...
Highly thermal conductive Boron Nitride/Polyrotaxane encapsulated PEG-based ...
 
PLA aerogel as a universal support for the typical organic phase change ener...
PLA aerogel as a universal support for the typical organic phase change  ener...PLA aerogel as a universal support for the typical organic phase change  ener...
PLA aerogel as a universal support for the typical organic phase change ener...
 
Graphene Functionalization of Polyrotaxane-Encapsulated PEG-Based PCMs: Fabri...
Graphene Functionalization of Polyrotaxane-Encapsulated PEG-Based PCMs: Fabri...Graphene Functionalization of Polyrotaxane-Encapsulated PEG-Based PCMs: Fabri...
Graphene Functionalization of Polyrotaxane-Encapsulated PEG-Based PCMs: Fabri...
 
Unveiling the structure, chemistry, and formation mechanism of an in-situ pho...
Unveiling the structure, chemistry, and formation mechanism of an in-situ pho...Unveiling the structure, chemistry, and formation mechanism of an in-situ pho...
Unveiling the structure, chemistry, and formation mechanism of an in-situ pho...
 
El rol de la tomografía en la industria: aplicaciones aeronáuticas y en el se...
El rol de la tomografía en la industria: aplicaciones aeronáuticas y en el se...El rol de la tomografía en la industria: aplicaciones aeronáuticas y en el se...
El rol de la tomografía en la industria: aplicaciones aeronáuticas y en el se...
 
How to make a manual binary segmentation for an XCT reconstructed volume with...
How to make a manual binary segmentation for an XCT reconstructed volume with...How to make a manual binary segmentation for an XCT reconstructed volume with...
How to make a manual binary segmentation for an XCT reconstructed volume with...
 
Una introducción a la Tomografía Computarizada de Rayos X
Una introducción a la Tomografía Computarizada de Rayos XUna introducción a la Tomografía Computarizada de Rayos X
Una introducción a la Tomografía Computarizada de Rayos X
 
Unidad 8: física cuántica
Unidad 8: física cuánticaUnidad 8: física cuántica
Unidad 8: física cuántica
 
Unidad 7: fuerzas a distancia
Unidad 7: fuerzas a distanciaUnidad 7: fuerzas a distancia
Unidad 7: fuerzas a distancia
 
Unidad 6: movimiento rotacional
Unidad 6: movimiento rotacionalUnidad 6: movimiento rotacional
Unidad 6: movimiento rotacional
 
Unit 5: Impulse and momentum
Unit 5: Impulse and momentumUnit 5: Impulse and momentum
Unit 5: Impulse and momentum
 
Unidad 5: impulso y cantidad de movimiento
Unidad 5: impulso y cantidad de movimientoUnidad 5: impulso y cantidad de movimiento
Unidad 5: impulso y cantidad de movimiento
 
Unidad 4: trabajo, energía y potencia
Unidad 4: trabajo, energía y potenciaUnidad 4: trabajo, energía y potencia
Unidad 4: trabajo, energía y potencia
 
Unidad 3: dinámica
Unidad 3: dinámicaUnidad 3: dinámica
Unidad 3: dinámica
 
Unidad 2: cinemática
Unidad 2: cinemáticaUnidad 2: cinemática
Unidad 2: cinemática
 
Unidad 1: descripción del mundo físico
Unidad 1: descripción del mundo físicoUnidad 1: descripción del mundo físico
Unidad 1: descripción del mundo físico
 
Unit 1: Description of the physical world
Unit 1: Description of the physical worldUnit 1: Description of the physical world
Unit 1: Description of the physical world
 
Laboratorio de Rayos X: caracterización de materiales
Laboratorio de Rayos X: caracterización de materialesLaboratorio de Rayos X: caracterización de materiales
Laboratorio de Rayos X: caracterización de materiales
 
How to manually align an XCT reconstructed volume with ImageJ
How to manually align an XCT reconstructed volume with ImageJHow to manually align an XCT reconstructed volume with ImageJ
How to manually align an XCT reconstructed volume with ImageJ
 
Directrices para la realización del informe de las prácticas de laboratorio
Directrices para la realización del informe de las prácticas de laboratorioDirectrices para la realización del informe de las prácticas de laboratorio
Directrices para la realización del informe de las prácticas de laboratorio
 

Recently uploaded

Bluetooth Controlled Car with Arduino.pdf
Bluetooth Controlled Car with Arduino.pdfBluetooth Controlled Car with Arduino.pdf
Bluetooth Controlled Car with Arduino.pdfngoud9212
 
Understanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitectureUnderstanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitecturePixlogix Infotech
 
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)Wonjun Hwang
 
Unleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubUnleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubKalema Edgar
 
Artificial intelligence in the post-deep learning era
Artificial intelligence in the post-deep learning eraArtificial intelligence in the post-deep learning era
Artificial intelligence in the post-deep learning eraDeakin University
 
APIForce Zurich 5 April Automation LPDG
APIForce Zurich 5 April  Automation LPDGAPIForce Zurich 5 April  Automation LPDG
APIForce Zurich 5 April Automation LPDGMarianaLemus7
 
Science&tech:THE INFORMATION AGE STS.pdf
Science&tech:THE INFORMATION AGE STS.pdfScience&tech:THE INFORMATION AGE STS.pdf
Science&tech:THE INFORMATION AGE STS.pdfjimielynbastida
 
Pigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions
 
Unraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfUnraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfAlex Barbosa Coqueiro
 
costume and set research powerpoint presentation
costume and set research powerpoint presentationcostume and set research powerpoint presentation
costume and set research powerpoint presentationphoebematthew05
 
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsKotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticscarlostorres15106
 
"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii SoldatenkoFwdays
 
Build your next Gen AI Breakthrough - April 2024
Build your next Gen AI Breakthrough - April 2024Build your next Gen AI Breakthrough - April 2024
Build your next Gen AI Breakthrough - April 2024Neo4j
 
Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Scott Keck-Warren
 
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationBeyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationSafe Software
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsMark Billinghurst
 
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks..."LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...Fwdays
 

Recently uploaded (20)

Bluetooth Controlled Car with Arduino.pdf
Bluetooth Controlled Car with Arduino.pdfBluetooth Controlled Car with Arduino.pdf
Bluetooth Controlled Car with Arduino.pdf
 
Understanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitectureUnderstanding the Laravel MVC Architecture
Understanding the Laravel MVC Architecture
 
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
 
DMCC Future of Trade Web3 - Special Edition
DMCC Future of Trade Web3 - Special EditionDMCC Future of Trade Web3 - Special Edition
DMCC Future of Trade Web3 - Special Edition
 
Unleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubUnleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding Club
 
Artificial intelligence in the post-deep learning era
Artificial intelligence in the post-deep learning eraArtificial intelligence in the post-deep learning era
Artificial intelligence in the post-deep learning era
 
APIForce Zurich 5 April Automation LPDG
APIForce Zurich 5 April  Automation LPDGAPIForce Zurich 5 April  Automation LPDG
APIForce Zurich 5 April Automation LPDG
 
Science&tech:THE INFORMATION AGE STS.pdf
Science&tech:THE INFORMATION AGE STS.pdfScience&tech:THE INFORMATION AGE STS.pdf
Science&tech:THE INFORMATION AGE STS.pdf
 
Pigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food Manufacturing
 
Unraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfUnraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdf
 
costume and set research powerpoint presentation
costume and set research powerpoint presentationcostume and set research powerpoint presentation
costume and set research powerpoint presentation
 
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsKotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
 
"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko
 
Build your next Gen AI Breakthrough - April 2024
Build your next Gen AI Breakthrough - April 2024Build your next Gen AI Breakthrough - April 2024
Build your next Gen AI Breakthrough - April 2024
 
Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024
 
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptxE-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
 
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationBeyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR Systems
 
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks..."LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
 
Vulnerability_Management_GRC_by Sohang Sengupta.pptx
Vulnerability_Management_GRC_by Sohang Sengupta.pptxVulnerability_Management_GRC_by Sohang Sengupta.pptx
Vulnerability_Management_GRC_by Sohang Sengupta.pptx
 

Manual Equalization of XCT Subvolume Histograms in ImageJ

  • 1. madrid institute for advanced studies materials c/ Eric Kandel, 2 · E28906 Getafe - Madrid · Spain telephone +34 91 549 34 22 · fax +34 91 550 30 47 web www.materials.imdea.org · e-mail contact.materials@imdea.org HOW TO MANUALLY EQUALIZE THE HISTOGRAMS OF TWO (OR MORE) SUBVOLUMES, MEASURED WITH XCT, USING IMAGEJ Javier García Molleja IMDEA Materials Institute – X-Ray Laboratory First of all, it is supposed that both subvolumes (of the same sample) were acquired with an overlapping region, that is, each measurement included part the same region. This technique is necessary when the sample is too long and one measurement is not enough. Second, this manual considers that both subvolumes were acquired under similar conditions and their dimensions, i.e., height and width, are equal. Now, let’s start with the equalization. Open the ImageJ software. File -> Import -> Raw… (and use the browser in order to select the subvolumes). Click Open. A dialog window is shown. Please, identify the image bit type, the width (in pixels), the height (in pixels) and the number of slices. Normally, these values are written at the end of the filename (or they are automatically loaded). It is supposed that these subvolumes are generated after reconstruction, so the file is saved as vol (then click Little-endian byte order). Click OK. It is important to say that in this example the sample was measured in three subvolumes but the equalization of only two of them is presented. The manual equalization of subvolumes is a pairwise process, so when two are equalized the third one will be equalized, and so on.
  • 2. 2 The volume is loaded in the TOP-BOTTOM view. Now, it is time to identify which subvolume represents the top part of the sample and which one represents the middle part of the sample. TOP REGION MIDDLE REGION Next step is to locate a slice, without artifacts, repeated in both subvolumes. If the overlapped region is in the upper side of the sample, the identical slice must be at the end of the top subvolume and at the beginning of the middle subvolume. Please, write the number of slice in both cases. Of course, the overlapped region will contain many slices. The choice of two identical slices depends on you (or if one volume is better than the other and you want to minimize the bad one…)
  • 3. 3 TOP SLICE #1916 MIDDLE SLICE #432 Image -> Duplicate… these identical slices. Please, give them different names in order to know which is which and do not check Duplicate stack option. In the present case, there is a xls file named (ask me if you want to do by yourself) XX_Gray_level_equalization_YY_(REF_ZZ)_v02.xls XX means the number of file used in the complete volume (01 in the present case; the equalization of the concatenated top-middle volume with the bottom subvolume will be 02); YY is the subvolume to be histogram-equalized and ZZ is the subvolume of reference. In this moment, you can select one of these slices as reference, i.e., the one with the “true” histogram. In this case, randomly, top subvolume is the one to be equalized and the middle subvolume has the “real” histogram. Image -> Type -> 8-bit the slice of the subvolume of reference (the middle one in this example). Analyze -> Histogram in order to obtain the histogram of this slice.
  • 4. 4 Click List in order to obtain the histogram in a numerical representation. In this window go to Edit -> Select All and then Edit -> Copy and go to the xls file and then to the REF_middle_MAT+BKG_8b tab. Paste the values at the ‘bin start’ and ‘count’ columns. Now, adjust the X and Y ranges of the three plots, namely, BKG (stands for the peak of the histogram identified as the gray values of the background), MAT (stands for the peak of the histogram identified as the gray values of the material) and ALL (stands for the complete histogram). To adjust the plots you may need to check: https://excel.tips.net/T003031_Changing_the_Axis_Scale.html
  • 5. 5 There are two boxes with black borders: one for the background and another for the material. Please, give for RANGE BKG and for RANGE MAT extreme gray values (X1 is the minimum one and X2 is the maximum one), far away for each peak. Normally, they can be selected similar to the X and Y ranges of the plots. On the other hand, for THR BKG and THR MAT you should select the threshold of the peak, that is, from zero counts to the selected value all gray values will be considered not belonging to the peak. These values will be dependent on the user expertise, so please, feel free to change or adjust to the most suitable for you and for the present subvolumes! This process will be repeated with the slice to be equalized. Start with the histogram, open the list, select the data and copy them in the up_MAT+BKG_16b tab in the Excel file (in the ‘bin start’ and ‘count’ columns).
  • 6. 6 Now, you need to do the same than before: adjust the X and Y ranges of the three plots, write proper values for RANGE BKG X1, X2 and for RANGE MAT X1 and X2 and fill the values corresponding to THR BKG and THR MAT. Hey! Bear in mind the decimal separator is ‘.’ in ImageJ. If you go to the Hoja1 tab you will see the column named ‘Iteracion’. Both, x and y values are in blue color. Image -> Duplicate… the slice from the top subvolume. Image -> Adjust -> Brightness/Contrast…
  • 7. 7 Click the Set button and put ‘Iteracion x’ as Minimum displayed value and ‘Iteracion y’ as Maximum displayed value. Select Automatic in Unsigned 16-bit range and do not check Propagate to all other open images. In the present case the blue numbers are 3492 and 40124. Click OK. Image -> Type -> 8-bit to this duplicated slice. Analyze -> Histogram and click List button in order to select all columns and copy them to up_MAT+BKG_8b tab in the Excel file (in the ‘bin start’ and ‘count’ columns). Now, repeat the same than before (adjust the ranges of all the plots, insert proper values for RANGE BKG -X1 and X2-, RANGE MAT -X1 and X2- and select THR BKG and THR MAT values).
  • 8. 8 In the gray cells near to the ones with the black border there are a couple of numbers, namely, INT BKG and INT MAT. Please, write these values (129.19 and 226.57 in the present case) in Hoja1 tab, in MEDIA A’ and in MEDIA B’ rows (they are in gray color, near to the blue values). Pay attention to the ‘correction’ row, if its absolute value is lesser than 1 both slices are equalized by their histograms. If its absolute value is greater than 1, a second iteration will be needed. In the present case, correction is -1.26006, so both slices are not well equalized.
  • 9. 9 The row number 5 is automatically filled and you need to copy the new blue values, i.e., ‘Iteracion x’ and ‘Iteracion y’ values. Go to the slice from the top subvolume (the one of 16-bit). Image -> Duplicate… for a second time. Image -> Adjust -> Brightness/Contrast… and click the Set button in order to put these new couple of minimum and maximum displayed values. In the present case, these new numbers are, respectively, 3673 and 40305. Click OK. Image -> Type -> 8-bit. After this, the process is repeated: obtain the histogram, click the List button, select all data and copy them to the up_MAT+BKG_8b tab in the ‘bin start’ and ‘count’ columns. See the change in the gray cells. Write INT BKG and INT MAT in Hoja1 tab in MEDIA A’ and MEDIA B’ columns (in the row number 5). In the present case ‘correction’ has a value of 0.09 so the histograms are equalized and a third iteration is not necessary. However, if you are too obsesive try to repeat the process until ‘correction’ value tends to 0. Furthermore, you need to copy and paste this row number 5 in the number 6 in order to continue the process! I know, this is a repetitive and confusing task but it is a very confident process! Now it is time to equalize both subvolumes. Remember that we were working with slices so far. First of all, go to the reference subvolume (the middle one in this example). Image -> Type -> 8-bit.
  • 10. 10 Go to the other subvolume, that is, the top one. Image -> Adjust -> Brightness/Contrast… and click the Set button. Use the two last blue values (remember, 3673 and 40305) in order to set the minimum and maximum displayed values and click OK. Image -> Type -> 8-bit in order to match the bit type of both equalized subvolumes. TOP BOTTOM Now it is time to concatenate both subvolumes! Sorry, but these next steps are detailed in another manual. Get it! After concatenation, you can adjust the brightness and the contrast in order to optimize them and do a rescale (the minumum gray value will be zero and the maximum gray value will be 255).
  • 11. 11 Image -> Adjust -> Brightness/Contrast… and go to a slice with neither shadows nor artifacts, click Auto button and then the Apply button. And save the concatenated volume! Furthermore, save the Excel file! (Thanks to Juan Ignacio Caballero for the the critical reading of this manual and several useful tips.)