Giter Site home page Giter Site logo

lucasplagwitz / recon Goto Github PK

View Code? Open in Web Editor NEW
11.0 11.0 4.0 40.21 MB

Primal-Dual Solver for Inverse Problems

Home Page: https://lucasplagwitz.github.io/recon/

License: GNU General Public License v3.0

Python 100.00%
bregman-projection inverse-problems primal-dual-algorithm proximal-operators python reconstruction segmentation total-variation

recon's People

Contributors

lucasplagwitz avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

recon's Issues

Projection

Hi,
I was looking at the Projection term and I noticed something that I can't quite explain.
I would expect when you do the proximal of ||Grad*x||_1� that you want to sum the squares of the derivatives in the two/n directions at the same point and then replicate the same vector over both dimensions.

Assuming that what comes in (the vector f) is f=Grad*x (or part of it contains this term...), this vector contains the derivative over the first dimension in the first half and the derivative over the second dimension in the second half. So I would have expected it to be reshaped as (2, nmodel) and summed over the 0 axis

Looking at your cod

aux = np.sqrt(np.sum(abs(np.reshape(f, (int(self.shape/self.n_dim), self.n_dim)))**2, axis=1))

it looks to me like as if you reshape it the other way around so that the sum is over the derivative of 2 neighbour points instead of the two derivatives at the same point, perhaps just a small mistake when you ported matlab code that uses Fortran array layout vs Python C layout? Or am I missing something wrt theory?

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.