SlideShare a Scribd company logo
1 of 7
Download to read offline
Madrid institute for advanced studies of materials
Parque tecnológico Tecnogetafe· Calle Eric Kandel, 2 · 28906 Getafe, Madrid · Spain
Telephone: +34 91 549 34 22 · Fax: +34 91 550 30 47 · E-mail: contact.materials@imdea.org
HOW TO MAKE A MASK FOR AN XCT RECONSTRUCTED VOLUME WITH
IMAGEJ
Javier García Molleja
IMDEA Materials Institute – X-Ray Laboratory
Open ImageJ software.
File -> Import -> Raw… (and use the browser in order to select your volume). 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 you are making a mask from an aligned volume, so the file is
saved as raw (then do not click Little-endian byte order). Click OK.
The volume is loaded in the TOP-BOTTOM view. The mask is important because it will discern between
sample and air, so it is possible to ignore any artefact from the air when volume quantification is
required.
Madrid institute for advanced studies of materials
Parque tecnológico Tecnogetafe· Calle Eric Kandel, 2 · 28906 Getafe, Madrid · Spain
Telephone: +34 91 549 34 22 · Fax: +34 91 550 30 47 · E-mail: contact.materials@imdea.org
Sample is considered as a whole, without regarding its internal features, pores or components.
Image -> Adjust -> Threshold… will show the histogram of grey levels and some options. This dialog
enables several global thresholding modes. Default, Huang and Otsu, for example, are typical choices.
See in the histogram two peaks separated by a valley. One peak distribution (low grey values) is for air
and another peak distribution (high grey values) is for sample.
Top slider should be at 0 and move the other one in order to select (in red colour in this case) the air.
Auto is the best initial guessing and with Set button you can write these two grey values. Reset button
will abort all operations. Try to select all air and the air-sample border must be clear and definite,
mimicking the real air-sample border.
Madrid institute for advanced studies of materials
Parque tecnológico Tecnogetafe· Calle Eric Kandel, 2 · 28906 Getafe, Madrid · Spain
Telephone: +34 91 549 34 22 · Fax: +34 91 550 30 47 · E-mail: contact.materials@imdea.org
When you are sure click Apply and uncheck all options in the new dialog window. Click OK. Now the
volume is changed to 8-bit (if you are working in 16-bit) and the LUT (look-up table) is inverted, that is,
black is 255 and white is 0. Check the status bar (under the window name) for detailed information.
For the following operations this inverted LUT is not a good option, so we need to change to black 0
and white 255.
Image -> Lookup Tables -> Invert LUT
Madrid institute for advanced studies of materials
Parque tecnológico Tecnogetafe· Calle Eric Kandel, 2 · 28906 Getafe, Madrid · Spain
Telephone: +34 91 549 34 22 · Fax: +34 91 550 30 47 · E-mail: contact.materials@imdea.org
We have many pores inside the sample so we should remove them in one step.
Process -> Binary -> Fill Holes will act in black regions, so if a white pixel is surrounded by black pixels it
will be converted into a black one. Click Yes to apply to all slices.
Process -> Binary -> Erode (click Yes to apply to all slices) in order to smooth the air-sample border.
Furthermore, any black region will lose one pixel of surface, so the air artefacts will be deleted. You can
try several times. In this example, four Erode operations were performed.
Process -> Binary -> Dilate (click Yes to apply to all slices) in order to recover the initial size. With this
operation, any black region will gain one pixel of surface. Remember that you need to perform the same
number of Dilate operations than the previous number of Erode operations.
We need to be sure that there is no artefacts in the air. We can know the maximum extension of the
sample, so any black pixel outside this region is an artefact.
Image -> Stacks -> Z-Project… all slices to Minimum Intensity, so we will obtain one slice with the
minimum grey (i.e., black 0 in the present case) per pixel position. Click OK.
Madrid institute for advanced studies of materials
Parque tecnológico Tecnogetafe· Calle Eric Kandel, 2 · 28906 Getafe, Madrid · Spain
Telephone: +34 91 549 34 22 · Fax: +34 91 550 30 47 · E-mail: contact.materials@imdea.org
Outside of this black region there is no sample. Go to the ImageJ main window and click Wand (tracing)
tool in this image (for more precision, in any black pixel). A yellow line will surround the black region.
Analyze -> Tools -> ROI Manager… and then click Add. With Rename… you can give another meaningful
filename. Furthermore, click More >> Save… in order to save in roi format your Region Of Interest.
Now you need to go to your volume and click the ROI in the ROI Manager. The yellow line will be
replicated in the complete stack. This shape will be replicated in every slice.
Edit -> Options -> Colors… and check that background is in white colour. Click OK for confirmation. In
the ImageJ main window you can do this by double-clicking Color Picker button.
Madrid institute for advanced studies of materials
Parque tecnológico Tecnogetafe· Calle Eric Kandel, 2 · 28906 Getafe, Madrid · Spain
Telephone: +34 91 549 34 22 · Fax: +34 91 550 30 47 · E-mail: contact.materials@imdea.org
Edit -> Clear Outside (click Yes to apply to all slices) and outside of this ROI all pixels are forced to be in
background colour (white in this case). Now, deselect the ROI.
Edit -> Invert (click Yes to apply to all slices) in order to obtain the sample in white 255 and the air in
black 0.
Congratulations! You did your mask for further operations in your volume. Of course, this is not the
only way to obtain it (maybe you need to change the order of Erode/Dilate operations, for example).
Furthermore, if you need to binarize the volume, i.e., air in black 0 and sample in white 1 you need to
perform a mathematical operation.
Process -> Math -> Divide… (click Yes to apply to all slices) by 255, so 0/255 = 0 and 255/255 = 1.
Madrid institute for advanced studies of materials
Parque tecnológico Tecnogetafe· Calle Eric Kandel, 2 · 28906 Getafe, Madrid · Spain
Telephone: +34 91 549 34 22 · Fax: +34 91 550 30 47 · E-mail: contact.materials@imdea.org
File -> Save As -> Raw Data… and you will finish all steps. Remember that in the filename you need to
know the name of the sample, the bit type, all previous operations, that this is a mask and the volume
size. The format will be raw.
03_Lath_50_HR_A1_8b_Median3D2p0_MASK_1690x500x1736.raw
Yes, we previously performed a Median filtering. This will smooth each grey pixel using the median of
its neighbourhood. This operation will help the local segmentation of sample features.
Image -> Type -> 8-bit in order to reduce the file size.
Process -> Filters -> Median 3D… and we used a neighbourhood of 2.0 pixels in the X, Y and Z directions.
(Thanks to Federico Sket for the idea).

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
 
Using the ti 83 84
Using the ti 83 84Using the ti 83 84
Using the ti 83 84lothomas
 
Assignment method
Assignment methodAssignment method
Assignment methodR A Shah
 
50g working with matricies
50g  working with matricies50g  working with matricies
50g working with matriciesEfrain Parizaca
 
Assignment Poblems
Assignment Poblems Assignment Poblems
Assignment Poblems vkabre
 
Assignment problem
Assignment problemAssignment problem
Assignment problemAbu Bashar
 
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
 

What's hot (8)

Operational research on Assignment ppt
Operational research on Assignment pptOperational research on Assignment ppt
Operational research on Assignment ppt
 
Using the ti 83 84
Using the ti 83 84Using the ti 83 84
Using the ti 83 84
 
Assignment method
Assignment methodAssignment method
Assignment method
 
50g working with matricies
50g  working with matricies50g  working with matricies
50g working with matricies
 
Assignment Poblems
Assignment Poblems Assignment Poblems
Assignment Poblems
 
Assignment problem
Assignment problemAssignment problem
Assignment problem
 
Assignment problem
Assignment problemAssignment problem
Assignment problem
 
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
 

Similar to How to make a mask for an XCT reconstructed volume with ImageJ

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
 
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
 
Cn mx3000 p_20120808e
Cn mx3000 p_20120808eCn mx3000 p_20120808e
Cn mx3000 p_20120808eElsa von Licy
 
Cn abi vii_a7setup_20120808e
Cn abi vii_a7setup_20120808eCn abi vii_a7setup_20120808e
Cn abi vii_a7setup_20120808eElsa von Licy
 
19IS402_LP1_LM_22-23.pdf
19IS402_LP1_LM_22-23.pdf19IS402_LP1_LM_22-23.pdf
19IS402_LP1_LM_22-23.pdfGOWTHAMR721887
 
Product portfolio swissqprint UV Flatbed Printers
Product portfolio swissqprint UV Flatbed PrintersProduct portfolio swissqprint UV Flatbed Printers
Product portfolio swissqprint UV Flatbed PrintersJack Skidmore
 
Coaxial feed microstrip patch antenna using HFSS
 Coaxial feed microstrip patch antenna using  HFSS Coaxial feed microstrip patch antenna using  HFSS
Coaxial feed microstrip patch antenna using HFSSMithilesh Naphade
 
Cn abi7900 ht_setup_201200808e
Cn abi7900 ht_setup_201200808eCn abi7900 ht_setup_201200808e
Cn abi7900 ht_setup_201200808eElsa von Licy
 
OR-I_Lecture_Note_01.pptx
OR-I_Lecture_Note_01.pptxOR-I_Lecture_Note_01.pptx
OR-I_Lecture_Note_01.pptxssuserf19f3e
 

Similar to How to make a mask for an XCT reconstructed volume with ImageJ (13)

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...
 
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
 
Aeroform 4 zones hot bonder
Aeroform 4 zones hot bonderAeroform 4 zones hot bonder
Aeroform 4 zones hot bonder
 
Cn mx3000 p_20120808e
Cn mx3000 p_20120808eCn mx3000 p_20120808e
Cn mx3000 p_20120808e
 
Som mx3000 p_setupe
Som mx3000 p_setupeSom mx3000 p_setupe
Som mx3000 p_setupe
 
Cn abi vii_a7setup_20120808e
Cn abi vii_a7setup_20120808eCn abi vii_a7setup_20120808e
Cn abi vii_a7setup_20120808e
 
19IS402_LP1_LM_22-23.pdf
19IS402_LP1_LM_22-23.pdf19IS402_LP1_LM_22-23.pdf
19IS402_LP1_LM_22-23.pdf
 
Som abi7900 setup_e
Som abi7900 setup_eSom abi7900 setup_e
Som abi7900 setup_e
 
Product portfolio swissqprint UV Flatbed Printers
Product portfolio swissqprint UV Flatbed PrintersProduct portfolio swissqprint UV Flatbed Printers
Product portfolio swissqprint UV Flatbed Printers
 
Spectrophotometer wroking procedur
Spectrophotometer wroking procedurSpectrophotometer wroking procedur
Spectrophotometer wroking procedur
 
Coaxial feed microstrip patch antenna using HFSS
 Coaxial feed microstrip patch antenna using  HFSS Coaxial feed microstrip patch antenna using  HFSS
Coaxial feed microstrip patch antenna using HFSS
 
Cn abi7900 ht_setup_201200808e
Cn abi7900 ht_setup_201200808eCn abi7900 ht_setup_201200808e
Cn abi7900 ht_setup_201200808e
 
OR-I_Lecture_Note_01.pptx
OR-I_Lecture_Note_01.pptxOR-I_Lecture_Note_01.pptx
OR-I_Lecture_Note_01.pptx
 

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
 
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
 
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
 
Guía rápida para regresiones lineales
Guía rápida para regresiones linealesGuía rápida para regresiones lineales
Guía rápida para regresiones linealesJavier 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...
 
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
 
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
 
Sesiones de Laboratorio Física I
Sesiones de Laboratorio Física ISesiones de Laboratorio Física I
Sesiones de Laboratorio Física I
 
Guía rápida para regresiones lineales
Guía rápida para regresiones linealesGuía rápida para regresiones lineales
Guía rápida para regresiones lineales
 

Recently uploaded

#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024BookNet Canada
 
SIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge GraphSIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge GraphNeo4j
 
Azure Monitor & Application Insight to monitor Infrastructure & Application
Azure Monitor & Application Insight to monitor Infrastructure & ApplicationAzure Monitor & Application Insight to monitor Infrastructure & Application
Azure Monitor & Application Insight to monitor Infrastructure & ApplicationAndikSusilo4
 
CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):comworks
 
Hyderabad Call Girls Khairatabad ✨ 7001305949 ✨ Cheap Price Your Budget
Hyderabad Call Girls Khairatabad ✨ 7001305949 ✨ Cheap Price Your BudgetHyderabad Call Girls Khairatabad ✨ 7001305949 ✨ Cheap Price Your Budget
Hyderabad Call Girls Khairatabad ✨ 7001305949 ✨ Cheap Price Your BudgetEnjoy Anytime
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreternaman860154
 
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure serviceWhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure servicePooja Nehwal
 
SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024Scott Keck-Warren
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsEnterprise Knowledge
 
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
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking MenDelhi Call girls
 
Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machineInstall Stable Diffusion in windows machine
Install Stable Diffusion in windows machinePadma Pradeep
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonetsnaman860154
 
Understanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitectureUnderstanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitecturePixlogix Infotech
 
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptx
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptxMaking_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptx
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptxnull - The Open Security Community
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking MenDelhi Call girls
 
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
 
Pigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions
 
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesSinan KOZAK
 

Recently uploaded (20)

#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
 
SIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge GraphSIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge Graph
 
Azure Monitor & Application Insight to monitor Infrastructure & Application
Azure Monitor & Application Insight to monitor Infrastructure & ApplicationAzure Monitor & Application Insight to monitor Infrastructure & Application
Azure Monitor & Application Insight to monitor Infrastructure & Application
 
CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):
 
Hyderabad Call Girls Khairatabad ✨ 7001305949 ✨ Cheap Price Your Budget
Hyderabad Call Girls Khairatabad ✨ 7001305949 ✨ Cheap Price Your BudgetHyderabad Call Girls Khairatabad ✨ 7001305949 ✨ Cheap Price Your Budget
Hyderabad Call Girls Khairatabad ✨ 7001305949 ✨ Cheap Price Your Budget
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreter
 
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure serviceWhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
 
SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
 
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
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
 
Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machineInstall Stable Diffusion in windows machine
Install Stable Diffusion in windows machine
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonets
 
Understanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitectureUnderstanding the Laravel MVC Architecture
Understanding the Laravel MVC Architecture
 
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptx
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptxMaking_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptx
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptx
 
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
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men
 
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
 
Pigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping Elbows
 
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen Frames
 

How to make a mask for an XCT reconstructed volume with ImageJ

  • 1. Madrid institute for advanced studies of materials Parque tecnológico Tecnogetafe· Calle Eric Kandel, 2 · 28906 Getafe, Madrid · Spain Telephone: +34 91 549 34 22 · Fax: +34 91 550 30 47 · E-mail: contact.materials@imdea.org HOW TO MAKE A MASK FOR AN XCT RECONSTRUCTED VOLUME WITH IMAGEJ Javier García Molleja IMDEA Materials Institute – X-Ray Laboratory Open ImageJ software. File -> Import -> Raw… (and use the browser in order to select your volume). 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 you are making a mask from an aligned volume, so the file is saved as raw (then do not click Little-endian byte order). Click OK. The volume is loaded in the TOP-BOTTOM view. The mask is important because it will discern between sample and air, so it is possible to ignore any artefact from the air when volume quantification is required.
  • 2. Madrid institute for advanced studies of materials Parque tecnológico Tecnogetafe· Calle Eric Kandel, 2 · 28906 Getafe, Madrid · Spain Telephone: +34 91 549 34 22 · Fax: +34 91 550 30 47 · E-mail: contact.materials@imdea.org Sample is considered as a whole, without regarding its internal features, pores or components. Image -> Adjust -> Threshold… will show the histogram of grey levels and some options. This dialog enables several global thresholding modes. Default, Huang and Otsu, for example, are typical choices. See in the histogram two peaks separated by a valley. One peak distribution (low grey values) is for air and another peak distribution (high grey values) is for sample. Top slider should be at 0 and move the other one in order to select (in red colour in this case) the air. Auto is the best initial guessing and with Set button you can write these two grey values. Reset button will abort all operations. Try to select all air and the air-sample border must be clear and definite, mimicking the real air-sample border.
  • 3. Madrid institute for advanced studies of materials Parque tecnológico Tecnogetafe· Calle Eric Kandel, 2 · 28906 Getafe, Madrid · Spain Telephone: +34 91 549 34 22 · Fax: +34 91 550 30 47 · E-mail: contact.materials@imdea.org When you are sure click Apply and uncheck all options in the new dialog window. Click OK. Now the volume is changed to 8-bit (if you are working in 16-bit) and the LUT (look-up table) is inverted, that is, black is 255 and white is 0. Check the status bar (under the window name) for detailed information. For the following operations this inverted LUT is not a good option, so we need to change to black 0 and white 255. Image -> Lookup Tables -> Invert LUT
  • 4. Madrid institute for advanced studies of materials Parque tecnológico Tecnogetafe· Calle Eric Kandel, 2 · 28906 Getafe, Madrid · Spain Telephone: +34 91 549 34 22 · Fax: +34 91 550 30 47 · E-mail: contact.materials@imdea.org We have many pores inside the sample so we should remove them in one step. Process -> Binary -> Fill Holes will act in black regions, so if a white pixel is surrounded by black pixels it will be converted into a black one. Click Yes to apply to all slices. Process -> Binary -> Erode (click Yes to apply to all slices) in order to smooth the air-sample border. Furthermore, any black region will lose one pixel of surface, so the air artefacts will be deleted. You can try several times. In this example, four Erode operations were performed. Process -> Binary -> Dilate (click Yes to apply to all slices) in order to recover the initial size. With this operation, any black region will gain one pixel of surface. Remember that you need to perform the same number of Dilate operations than the previous number of Erode operations. We need to be sure that there is no artefacts in the air. We can know the maximum extension of the sample, so any black pixel outside this region is an artefact. Image -> Stacks -> Z-Project… all slices to Minimum Intensity, so we will obtain one slice with the minimum grey (i.e., black 0 in the present case) per pixel position. Click OK.
  • 5. Madrid institute for advanced studies of materials Parque tecnológico Tecnogetafe· Calle Eric Kandel, 2 · 28906 Getafe, Madrid · Spain Telephone: +34 91 549 34 22 · Fax: +34 91 550 30 47 · E-mail: contact.materials@imdea.org Outside of this black region there is no sample. Go to the ImageJ main window and click Wand (tracing) tool in this image (for more precision, in any black pixel). A yellow line will surround the black region. Analyze -> Tools -> ROI Manager… and then click Add. With Rename… you can give another meaningful filename. Furthermore, click More >> Save… in order to save in roi format your Region Of Interest. Now you need to go to your volume and click the ROI in the ROI Manager. The yellow line will be replicated in the complete stack. This shape will be replicated in every slice. Edit -> Options -> Colors… and check that background is in white colour. Click OK for confirmation. In the ImageJ main window you can do this by double-clicking Color Picker button.
  • 6. Madrid institute for advanced studies of materials Parque tecnológico Tecnogetafe· Calle Eric Kandel, 2 · 28906 Getafe, Madrid · Spain Telephone: +34 91 549 34 22 · Fax: +34 91 550 30 47 · E-mail: contact.materials@imdea.org Edit -> Clear Outside (click Yes to apply to all slices) and outside of this ROI all pixels are forced to be in background colour (white in this case). Now, deselect the ROI. Edit -> Invert (click Yes to apply to all slices) in order to obtain the sample in white 255 and the air in black 0. Congratulations! You did your mask for further operations in your volume. Of course, this is not the only way to obtain it (maybe you need to change the order of Erode/Dilate operations, for example). Furthermore, if you need to binarize the volume, i.e., air in black 0 and sample in white 1 you need to perform a mathematical operation. Process -> Math -> Divide… (click Yes to apply to all slices) by 255, so 0/255 = 0 and 255/255 = 1.
  • 7. Madrid institute for advanced studies of materials Parque tecnológico Tecnogetafe· Calle Eric Kandel, 2 · 28906 Getafe, Madrid · Spain Telephone: +34 91 549 34 22 · Fax: +34 91 550 30 47 · E-mail: contact.materials@imdea.org File -> Save As -> Raw Data… and you will finish all steps. Remember that in the filename you need to know the name of the sample, the bit type, all previous operations, that this is a mask and the volume size. The format will be raw. 03_Lath_50_HR_A1_8b_Median3D2p0_MASK_1690x500x1736.raw Yes, we previously performed a Median filtering. This will smooth each grey pixel using the median of its neighbourhood. This operation will help the local segmentation of sample features. Image -> Type -> 8-bit in order to reduce the file size. Process -> Filters -> Median 3D… and we used a neighbourhood of 2.0 pixels in the X, Y and Z directions. (Thanks to Federico Sket for the idea).