Git Product home page Git Product logo

Comments (4)

tinabe avatar tinabe commented on July 23, 2024

Comment to 2): Are you thinking about solving that by adding a conditional statement: only use pixel for averaging if the difference between them (abs of subtract) is lower than some threshold?

from kikuchipy.

hakonanes avatar hakonanes commented on July 23, 2024

Yes, a suggested value should be default, however I should be able to overwrite this.

The 'pattern difference' procedure as explained by Wright et al. in the article referenced above:

  1. Convert each pattern to a column vector.
  2. Subtract the average intensity of each pattern from each vector component.
  3. Normalise the column vector.
  4. Calculate difference between two patterns by calculating the dot product between the two normalised column vectors.
  5. Subtract the resulting difference value from 1 so that 0 indicates no difference and 1 represents the maximum difference.
  6. Average the resulting eight difference values for each pattern to its eight adjacent patterns to obtain final difference value

from kikuchipy.

hakonanes avatar hakonanes commented on July 23, 2024

Should use dask.map_overlap for this: https://docs.dask.org/en/latest/array-overlap.html#dask.array.map_overlap.

from kikuchipy.

hakonanes avatar hakonanes commented on July 23, 2024

This is now possible with kikuchipy.signals.ebsd.EBSD.average_neighbour_patterns().

from kikuchipy.

Related Issues (20)

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.