Skip to content

wildthingz/SegmentationCheck

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

SegmentationCheck

Overview

This code is developed to analyze XMT (X-ray microtomography) images from aluminium copper samples. Fig1 shows a reconstruted volume from a set of XMT images.

fig1. Reconstruced volume from XMT images.

Code Description

First section of the code, comp(), is used to convert mass fraction to volume fraction in eutectic alloys, using either Schiel equation or lever rule depending on user's intentions. Second section, VolFracTomog(), is used to calculate the area fraction of the secondary phase in a micrograph. User can implement K-means method, use their own threshold array or use Ostu's method to segment the image. The code then can be used to iterate over a number of images, this is specially useful if the user is inteding to determine the volume fraction of a phase in XMT images. The third bit of the code is a custom code to generate a plot for a specific problem, user may write their own code to visualize their results.

Sample results

For this case, I have run this code for 4 different materials. Note that close to 11000 XMT images (fig2) were analyzed in the process.

fig2. Sample XMT image.

A sample result image has also been generated (fig3). Note that this is only a sample illustration and does not represent the actual results generated from the XMT images.

fig3. Sample illustartion of the results.

Requirements

  • Python 2.7.11
  • numpy
  • scikit-image
  • matplotlib
  • PIL
  • cv2

About

Code for calculating volume fraction of a phase using image processing techniques in XMT images

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages