Code Monkey home page Code Monkey logo

Comments (3)

luispedro avatar luispedro commented on May 20, 2024

On 01/28/2014 10:29 AM, manuels wrote:

Index 9 should be the variance of the pixel value differences and not
the variance of the probabilities of the pixel values

Haralick 1973 has f_{10} = variance of p_{x-y} and p_{x-y} is the
normalized array. Normalized means probabilities. The code against which
I benchmarked mahotas also had this interpretation.

Your interpretation is that it's the variance of |x-y|. Not
unreasonable, actually.

Changing interpretations now would break backwards compatibility,
though. I'll think about it.

And index 6 should be np.dot((tk-feats[5])**2, px_plus_y) (compare
http://www.iaeng.org/IJCS/issues_v36/issue_1/IJCS_36_1_09.pdf)

That's the same result. Just that you have more temporary variables that
way.

Tx
Luis

from mahotas.

manuels avatar manuels commented on May 20, 2024

And index 6 should be np.dot((tk-feats[5])**2, px_plus_y) (compare http://www.iaeng.org/IJCS/issues_v36/issue_1/IJCS_36_1_09.pdf)

That's the same result. Just that you have more temporary variables that way.

Not really, is it?

  sum((k-f)^2*P(k))
= sum((k^2 - 2kf + f^2)*P(k))
= sum(k^2*P(k)) - 2*f*sum(k*P(k)) + f^2

from mahotas.

manuels avatar manuels commented on May 20, 2024
= sum(k^2*P(k)) - 2*f^2 + f^2
= sum(k^2*P(k)) - f^2

sorry, you are right about this one ;)

from mahotas.

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.