dice
dice copied to clipboard
DICe_solution.info always states "incremental correlation: false" even if incremental correlation is enabled
Hello,
I am trying to estimate DIC using incremental correlations. So far, I have done several tests but the DICe always calculates absolute correlations instead. I leave all the details of my procedure below.
I am on Windows 10 using DICe version v2.0-beta.16.
First I generate the following params.xml
file:
<ParameterList>
<Parameter name="interpolation_method" type="string" value="KEYS_FOURTH" />
<Parameter name="initialization_method" type="string" value="USE_FEATURE_MATCHING" />
<Parameter name="optimization_method" type="string" value="GRADIENT_BASED" />
<Parameter name="enable_translation" type="bool" value="true" />
<Parameter name="enable_rotation" type="bool" value="true" />
<Parameter name="enable_normal_strain" type="bool" value="true" />
<Parameter name="enable_shear_strain" type="bool" value="true" />
<Parameter name="sssig_threshold" type="double" value="150" />
<Parameter name="output_delimiter" type="string" value="," />
<Parameter name="use_incremental_formulation" type="bool" value="true" />
<!-- -->
<ParameterList name="post_process_vsg_strain">
<Parameter name="strain_window_size_in_pixels" type="int" value="28" />
<!-- -->
<ParameterList name="output_spec">
<Parameter name="COORDINATE_X" type="bool" value="true" />
<Parameter name="COORDINATE_Y" type="bool" value="true" />
<Parameter name="DISPLACEMENT_X" type="bool" value="true" />
<Parameter name="DISPLACEMENT_Y" type="bool" value="true" />
<Parameter name="SIGMA" type="bool" value="true" />
<Parameter name="GAMMA" type="bool" value="true" />
<Parameter name="BETA" type="bool" value="true" />
<Parameter name="NOISE_LEVEL" type="bool" value="true" />
<Parameter name="STATUS_FLAG" type="bool" value="true" />
<Parameter name="UNCERTAINTY" type="bool" value="true" />
<Parameter name="VSG_STRAIN_XX" type="bool" value="true" />
<Parameter name="VSG_STRAIN_YY" type="bool" value="true" />
<Parameter name="VSG_STRAIN_XY" type="bool" value="true" />
</ParameterList>
</ParameterList>
</ParameterList>
note that on line 11 I state:
<Parameter name="use_incremental_formulation" type="bool" value="true" />
Then I call the input.xml file from the command line using (as said in the documentation):
dice -i input_file.xml
and I get my results but in the DICe_solution.info
I always get this line: *** Incremental correlation: false
I also checked the results against those obtained by using absolute correlation and they are the same. I don't know what's going on here. Any clues as to how I might solve this? I attach the XML and info files involved (just in case)
all the best, Marco
This is a bug. Looks like the output in DICe_solution.info is hard coded to state "false" for incremental formulation in line 3586 of DICe_Schema.cpp.
This has been fixed in commit: https://github.com/dicengine/dice/commit/e4045251895dbfa5e4580657a3a9bdda04c92809
Hi again,
first, thank you for the quick response. If I understand it correctly, the incremental correlation is working then, right? It is simply a bug in the code that generates the report.
Best, Marco
PS. when creating a template file using $ dice -g [file_prefix]
these lines below never appear as an option
<ParameterList name="post_process_vsg_strain">
<Parameter name="strain_window_size_in_pixels" type="int" value="int value here" />
perhaps it would be useful to include them in a commented fashion.
That's right. It was simply a bug in the report.
I agree that adding the post processing of vsg strain would be a good addition to the -g option. I'll add that as a feature request.