New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DOC: Options and descriptions in "Merge Twin" filter/documentation #923
Comments
Hello Krzysztof, I will answer your questions to the best of my ability. I do not have a background in material science so I will have to direct you to @imikejackson for specific implications on the output as a result of the randomness in the algorithm. However, I will do my best to explain the application of the seed in the algorithm itself. The value supplied here will be fed to our random number generator that generates a sequence of numbers. This sequence determines the order in which specific elements of the The default value of As for the Also, I will update the documentation to be clearer about the impact of the seed value. I will message Mike to pop in here and give you a better rundown from a materials standpoint. Nathan |
Hi Nathan, Thank you for the detailed explanation. To follow up on the random seed, I was examining how the That leads to my original thoughts on the It is also worthwhile to mention that the synthetic filter Best regards, |
Hey Krzysztof, I looked over the **The actual use of randomization of feature ids is just for visualization because without it a gradient appears when coloring that makes it hard to visually distinguish between individual features (especially in larger datasets). **The ids themselves are solely used for indexing and labeling features the object they do not affect outcomes of the algorithms itself. Thus, they are consistently randomized from run to run via a hardcoded static seed (the default seed: To answer your other question. Under the covers of both To answer your original question as clearly as I can: _Is there any reason this should be different from the "Randomize Feature IDs" option in Segment Features (Misorientation) or Segment Features (Scalar) filters? _ The Note: there is no way to disable randomization of ids in the Hopefully that helps clarify, and I will look into cleaning up the Nathan |
Hi Nathan, That is a great explanation. For the record, the Best regards, |
@StopkaKris Nathan has done a great job of explaining everything. I hope your questions fully answered at this point. We can update the docs a bit with some screen shots of the differences in the randomness with some more details from this issue thread in the docs to better explain. I am sure when we ported a few of those filters, they are pretty much a "copy & paste" with a whole lot of clean up involved. (APIs between the 2 versions are very different). To reiterate from @nyoungbq explanation:
Looking deeper into the "MergeTwins" algorithm, the use of a random number to determine the featureParentIds in the I wouldn't know what to tell anyone about getting a "non-contiguous neighbor list". I don't know what filter would create those. My guess is that this became some sort of odd off-shoot from the microtexture codes. Looking deeper into the version 6.5/6.6 DREAM3D codes, MergeTwins inherits from "GroupFeatures", but then looking at what else inherits from GroupFeatures, I see it is "GroupMicroTextureRegions" and "MergeColonies". So my guess is that "MergeTwins" probably needs to inherit from "SegmentFeatures" instead so that it does not inherit from the "GroupFeatures" which got spinkled with micro-texture related codes and no one noticed. Well, this was an interesting run down memory lane. We will get the Merge Twins code cleaned up. Have to figure out how to test the codes once we do clean them up though. |
Sounds great, Mike, thanks again! Best regards, |
The code was cleaned up in this PR: |
Is there an existing issue for this?
Brief Description of the Documentation Issue or Improvement
There are two questions/discrepancies I have about this filter and documentation.
Segment Features (Misorientation)
orSegment Features (Scalar)
filters? It seem as if that would suffice for this filter.Create Geometry
(7.29) return results for the phrase "Non-Contiguous". When the checkbox is selected, the "Required Feature Data" array "Contiguous Neighbor List" changes to "Non-Contiguous Neighbor List", but it is unclear how this is determined nor is there a filter to determine this list. I see that previous versions of DREAM.3D also have this checkbox inMerge Twins
so perhaps this was just a copy-and-paste decision over to the NX version. Either way, this should be clarified.Best regards,
Krzysztof Stopka
Version
DREAM3D NX (version 7)
What section of the documentation did you encounter the discrepancy in? [Further details may be required during triage process]
No response
Anything else?
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: