Select the process(es) associated with JMicroVision 1.2.7 in the list, click Quit Process icon in the left corner of the window, and click Quit in the pop-up dialog box (if that doesn’t work, then try Force Quit). Pore Size Diameter is calculated as the diameter of a circle that has the same area as the total area of the pore.Open the Applications folder in the Finder (if it doesn’t appear in the sidebar, go to the Menu Bar, open the “Go” menu, and select Applications in the list), search for JMicroVision 1.2.7 application by typing its name in the search field, and then drag it to the Trash (in the dock) to begin the uninstall process.ĭelete JMicroVision 1.2.7 application using the Trashįirst of all, make sure to log into your Mac with an administrator account, or you will be asked for a password when you try to delete something. Once the blue zones of the porosity are detected, press Calculate to get a report file that includes the calculation of the Total Porosity and a Histogram of the percentage of the porosity represented by the different pore sizes. Open the thin_section_porosity_zoom.py, and press “Open Files” and select four image files (they must have the same resolution), usually from diferent zones of the Thin Section, then modify the HSV color limits to threshold the blue zones that represent the Thin Section porosity. Results (.csv file and resulting image file) are saved in a folder named “prediction_results” in the root directory of the project. Save the color image with all the pores filled with different colors for each pore size bin in the histogram.Then convert the total porosity and pore size histogram into pandas data frames and save them to a csv file with the name of the fourth image selected by the user.Once all the pores have been cycled, calculate the total porosity summing all the areas of the different bins and dividing by the total area of the image (multiply the shape x and y of the composed image).Draw and fill the area of the pore in the composed color image with the corresponding to the pose color based on its size.Add the area of the pore to the total area of the corresponding histogram bin.Classify the pore diameter in the pore size histogram bins specified in the main program as a python list.Multiply the Diameter by the scale to obtain diameter in microns.With the total pixels of the pore, calculate the diamter of the pore equating it to the area of the pore in pixels.Cycle through all the contours and for each contour (pore) draw it in a blank image and count the non-zero pixels, this gives the total pixels of the pore.Find the contours of the pores in the binary image using findContours funtion from OpenCV.Threshold the image into a binary file in the HSV color space using the HSV limits entered by the user (pores are white and minerals are black).The pore area is calculated using opencv, with the following sequence: This program uses Tkinter library to make a GUI interface. Save the report to a file to be copied into our reports.Avoid having to input the histogram bin limits each time (needed at least in JMicroVision). Add the scale line and number to the image.Reduce image size for JMicroVision to allow it (it seems there is a size limitation).Add black lines divinding the images to avoid the software to connect pores from different images.The objective of the project was to facilitate the work of the geologists automation the following tasks: The work of calculating porosity can be done using free available software like JMicroVision, but many of the tasks involved make the whole process really slow (usually more that 10 minutes per sample). Usually four microscopic photographs are taken to have a more representative samplig of the thin section. During the preparation of the Thin Section, pores are filled with a blue resin that when photographed in a microscope, allows you to differentiate the pores from the rest of the minerals. In petroleum geology, calculating the porosity of a rock sample is important and is part of the routine geological analysis. Thin Sections are 30 micron slices of rock used in Geology to describe the minerals present in the rock sample. This project application calculates the total porosity of a thin section and a histogram of pore sizes.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |