Giter Site home page Giter Site logo

agni2006 / drill-cuttings Goto Github PK

View Code? Open in Web Editor NEW

This project forked from raplima/drill-cuttings

0.0 0.0 0.0 4.29 MB

Image processing for the identification and classification of images of drill cuttings in thin section

Home Page: https://library.seg.org/doi/abs/10.1190/int-2021-0194.1

Python 95.81% Jupyter Notebook 4.19%

drill-cuttings's Introduction

Drill cuttings thin section chip segmentation

A collection of Python scripts to isolate and segment individual chips from scanning electron microscopy (SEM) images of drill cutting samples mounted on thin sections. Terminal example

Getting started

Clone this repository to your local machine using your tool of choice. Install Anaconda –if you don't have it– and open the Anaconda Prompt. Navigate to the location of the cloned repository and install the environment using the command:
conda env create -f environment.yml

Installing the environment.yml might take some time.

Then, follow the instructions to activate the newly installed environment:
conda activate py_env

The terminal should look something like this:
Terminal example

Now you should be able to segment the individual drill cutting chips using the chip_identification script. Don't forget to use the py_env environment.

Isolating and segmenting chips

Open your local chip_identification and modify the input and output parameters. IO parameters

The program expects img_names as a list containing one or more image names without the extension. Inside the loop, the variable fname_in uses the elements in img_names to assemble the full file name. The variable data_out_dir indicates where the output data will be saved. Other parameters that can be used for tuning include:

  • downscale_factor: to reduce the size of the original image;
  • min_intensity: pixels with values smaller than min_intensity are considered background;
  • max_intensity: pixels with values larger than max_intensity are considered as part of a chip;
  • scale_nm_per_pixel: identifies the size of the pixels;
  • min_hole and min_chip: the smallest hole and smallest chip thresholds for topological operations.

Moreover, save_steps can be set to True so the program saves all steps of the segmentation, including the before and after for topological operations.

After setting the parameters, the program can be executed calling:
python chip_identification.py

Execution

The isolated and segmented chips are saved in the output folder specified in data_out_dir


Software here is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.

drill-cuttings's People

Contributors

raplima avatar danybecerra2 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.