File Exchange

image thumbnail

DaveHealy-Aberdeen/FracPaQ

version 2.6.0.0 (71.5 MB) by Dave Healy
Quantification of fracture patterns in rocks and other materials

17 Downloads

Updated 13 Jun 2019

GitHub view license on GitHub

Quantification of Fracture Patterns

Cite As

Dave Healy (2019). DaveHealy-Aberdeen/FracPaQ (https://www.github.com/DaveHealy-Aberdeen/FracPaQ), GitHub. Retrieved .

Comments and Ratings (41)

Dave Healy

Hello Sophie

sorry to say but your file is the ‘wrong’ type for loading into FracPaQ as an Image file.

It is 32 bit truecolor, and not 8 bit grayscale.

You should be able to reset these in, for example, ImageJ or GIMP, or other graphics packages.

However, looking at the image, the outcrops are not that continuous. And therefore the Hough Transform method used for image files will struggle. A better – although more time-consuming approach – is to manually trace the fractures in a graphics package and save that layer as an .SVG file. Import that file into FracPaQ as a node file. More detailed instructions in the User Guide.

All the best,
Dave

You have the .tif file!

Oh my first response it missing.

Thank you so much for your quick response. I am sending you the .tif file via weTransfer. I know I am a bit late, but I am working from Australia and I have a presentation tomorrow at 06.00h British time. WeTransfer will take about 8 hours left haha, do you think you can help me before the presentation? I would like to show the P21 value there.

Many thanks in advance for helping me out.

Cheers,
Sophie

Oke disclaimer, the WiFi here is really weak so the 1.2GB of the file might take a while...

Dave Healy

Hello Sophie
sorry to hear this; can you send me the input .tif file (or a link if it's too big) to d.healy@abdn.ac.uk
I'll work through it. As per the User Guide, you need an 8-bit grayscale image. You can check in MATLAB with the function imfinfo().
Thanks,
Dave

In Matlab 2019A I installed FracPaQ to generate the P21 and so on of a fracture pavement. I have the pavements generated in Agisoft and exported as a .tif, but when I open them in FracPaQ I get this error:

FracPaQ version 2.6
Error using ~=
Too many input arguments.

Error in guiFracPaQ2D>pushbutton_preview_Callback (line 757)
if Iinfo.BitDepth ~= 8 || ~strcmp('grayscale', Iinfo.ColorType)

Error in gui_mainfcn (line 95)
feval(varargin{:});

Error in guiFracPaQ2D (line 63)
gui_mainfcn(gui_State, varargin{:});

Error in
matlab.graphics.internal.figfile.FigFile/read>@(hObject,eventdata)guiFracPaQ2D('pushbutton_preview_Callback',hObject,eventdata,guidata(hObject))
Error while evaluating UIControl Callback.

Error using ~=
Too many input arguments.

Error in guiFracPaQ2D>pushbutton_preview_Callback (line 757)
if Iinfo.BitDepth ~= 8 || ~strcmp('grayscale', Iinfo.ColorType)

Error in gui_mainfcn (line 95)
feval(varargin{:});

Error in guiFracPaQ2D (line 63)
gui_mainfcn(gui_State, varargin{:});

Error in
matlab.graphics.internal.figfile.FigFile/read>@(hObject,eventdata)guiFracPaQ2D('pushbutton_preview_Callback',hObject,eventdata,guidata(hObject))
Error while evaluating UIControl Callback.

The type of file is changed to Image, so I don't know why it doesn't work.

Anyone who i sable to help me?

Thanks in advance,
Sophie

Thank you for the swift answer.
I did not think of selecting "Options" after clicking "Browse" to actually change the file type filter.
Thank you again.

Dave Healy

Hello
I've just downloaded it, selected Image File, clicked Browse; changed the filetype filter to *.tif, and chose MacduffBinary.tif, then clicked Preview.

Works for me!

Can you try the above and let me know?

Thanks
Dave

I just downloaded the software, open matlab, pointed to /FracPaQ folder, typed guiFracPaQ2D and then when I select image input file nothing works.
No images of any kind can be opened.
Even the images provided with the package are grayed-out and cannot be opened.
The only files that the giu can open even when i select "image file" option ate .txt files.
I run Matlab 2019a and OXSX Mojave.
Any ideas how to fixe the issue?
Thanks.

Dave Healy

New version 2.6 now available, including new connectivity maps, new line graphs, fixed bugs, and revised User Guide.

All comments welcome!

Dave Healy

(just cut/pasted the link without the '.Can' at the end - works now!)

So, yes it can. 1) if you save it as a TIFF or JPEG you can use the Image file input (see the User Guide PDF in the download); this will use a Hough Transform method to find colinear pixels; but much better is 2) trace the cracks using some graphics package (or save as .SVG), and import into FracPaQ as a Node file (again, see the User Guide).

Hope this helps.

Dave

Dear Dave Healy,
I am seeing a lot of positive feedback for your software and I am trying to use it for my project where we have to analyze cracks on a metal surface from a given microscopic image. I am unable to use your software for finding parameters like crack density, crack length, etc the images are of metals, for example, https://photos.app.goo.gl/YQVBoam5wmrmyZgo8.Can FracPaQ be used to analyze these kinds of images?? Your help is highly appreciated.
Thanks in advance.

Dave Healy

Hello, not as it stands, no. FracPaQ is designed to quantify existing patterns, not to predict them. For that you would need an underlying model for fracture distribution.

Can we use it to predict fractures in a seimic image of subsurface?

Dave Healy

Thanks Hannah. Will get that feature added in the next release, and some other plots based on distance of fractures from a specified line (e.g. a fault trace), e.g. length, orientation etc.

This package is incredibly helpful for analyzing fracture patterns in deformed samples or outcrops. It makes it so easy to squeeze any information that you could possibly want about fracture distributions out of your fracture traces. The one suggestion that I have is to add a functionality to be able to select a linear transect across your image in the GUI and output a plot where the x-axis is the position along the transect and the y-axis is the fracture density or intensity. This would allow for easy analysis of things like damage zone characteristics around a fault or a fracture in an experimentally deformed sample.

Dear Dave,
I solved the problem,
I had another function with the same name.
sorry to bother
thank you,
Eduardo

Dear Dave,
I tried to run the code but I get the following error:

>> guiFracPaQ2D
Error using get (line 13)
uiextras.get has been removed.

Error in matlab.ui.internal.legacyMoveGUI (line 88)
old0units = get(0, 'Units');

Error in movegui (line 125)
matlab.ui.internal.legacyMoveGUI(fig, position);

Error in matlab.hg.internal.openfigLegacy (line 102)
movegui(fig(n), 'onscreen');

Error in gui_mainfcn>local_openfig (line 286)
gui_hFigure = matlab.hg.internal.openfigLegacy(name, singleton, visible);

Error in gui_mainfcn (line 158)
gui_hFigure = local_openfig(gui_State.gui_Name, gui_SingletonOpt, gui_Visible);

Error in guiFracPaQ2D (line 63)
gui_mainfcn(gui_State, varargin{:});

could you help me solve it?
thank you,

Dear Dave,
I could fix it
sorry to bother
Thank you!

Great piece of software!

I have applied the codes to evaluate the brittle deformation behavior in Sierra de Pachuca, Hidalgo, Mexico; results are outstanding.

heba ashraf

This code helped me very much in my graduation project to detect a lot of fractures from remote sensing data and field pictures , its output plot very good for fracture analysis from image and SVG files , thanks for sharing it.

Sophie Cox

Nice output plots for fracture analysis from images of mafic rocks. Very easy to use and a good fracture analysis software.

Excellent fracture analysis software, intuitive GUI and quality default plot outputs.

Great toolbox, used to quantify fracture patterns extracted from a Virtual Outcrop Model.Thank you for sharing it!

A very useful and user-friendly package of codes. Thank you for your effort.

Superb set of scripts for an objective and very applicable analysis of rock massifs under tropical weathering conditions. Congratulations Dave !

Andrea

This comprehensive code + GUI packet was very helpful in our research on the propagation of fractures through analogue materials at Iowa State University!

Thank you, your tools have improved fracture analysis.

Dave Healy

New version 2.4 now available, including new tabbed GUI, new trace maps for slip & dilation tendency, new log-log plots for density distributions, and revised User Guide.

All comments welcome!

Dave Healy

New version 2.2 now available.

Jimmy VILLA

Dave Healy

New version 2.0 now available.

Dave Healy

New version 1.8 now available.

Dave Healy

Current version 1.6a fixes the known bugs and adds enhancements changes requested by reviewers of our manuscript submitted to Journal of Structural Geology.

Dave Healy

Thanks Rashad.

We have logged bugs for the Density plot (says 'Intensity'), the shell scripts and the Scaling parameter (crashes when pixels/metre >= 1000). All these will be addressed in next release, v1.7.

Rashad G

This is an excellent set of codes for quantitative fracture characterization. Thanks to you and your Team.

Updates

2.6.0.0

New version 2.6

2.4.0.0

Bugs fixed, new trace maps for slip and dilation tendency, new log-log plots for density distribution, new tabbed GUI; revised User Guide.

2.2.0.0

We have added 2D wavelet analysis, a variogram plot for segment lengths and a colour-coded rose diagram. And fixed the bugs that were reported to us.

2.0.0.0

This version 2.0, with new trace maps, new block size graphs, multicolour trace input via .svg files, upper and lower cut-offs on MLE plots and a new User Guide

1.8.0.0

Version 1.8, with new User Guide

1.6.0.0

Tidy up, Sep 12, 2016

MATLAB Release Compatibility
Created with R2017a
Compatible with any release
Platform Compatibility
Windows macOS Linux