Code Monkey home page Code Monkey logo

geomap's People

Contributors

eldruin avatar hmeine avatar jensbarthel avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

eldruin baehn

geomap's Issues

Remove pythonutil.hxx?

pythonutil.hxx contains a collection of BPL-related hacks and workarounds. Let's see whether it is needed at all now.

warnings during import

During import, one currently gets:

/Users/hmeine/local-Darwin/lib/python2.7/site-packages/vigra/__init__.py:104: RuntimeWarning: to-Python converter for vigra::TinyVector<double, 2> already registered; second conversion method ignored.
  import vigranumpycore
/Users/hmeine/local-Darwin/lib/python2.7/site-packages/vigra/__init__.py:104: RuntimeWarning: to-Python converter for vigra::TinyVector<double, 3> already registered; second conversion method ignored.
  import vigranumpycore
/Users/hmeine/local-Darwin/lib/python2.7/site-packages/vigra/__init__.py:104: RuntimeWarning: to-Python converter for vigra::Point2D already registered; second conversion method ignored.
  import vigranumpycore

Make compilation work again

Before the restructuring, one could check out the hg repository into vigra/vigranumpy/private and issue "make geomap".

It would be great to get that working again. (We would probably want to build a DLL in the src/geomap folder first, and link against it.)

I removed the geomapmodule.cxx though, because it contained loads of unrelated functionality, so I first need to separate the bits and pieces and check in the GeoMap-related part of it.

Add support for boost::signals

At the moment this library uses with sigc++ for signals. However, an implementation using boost signals would also be interesting.
My current plan is:

  • Add cmake option to select sigc++ or boost signals (maybe non exclusive?)
  • Add switches to use boost signals or sigc++ across all code (non-exclusivity would be an important decision for this)

I am working on this here.

Crash when iterating Edge

I got a strange crash when iterating an edge. In particular, I get no output with a loop like

for p in edge:
  print p

and I cannot do list(edge) or numpy.asarray(edge). Strangely, plot(*numpy.asarray(edge).T) works (consistently), but of course that may just be undefined behavior.

crackConvert.py

Hi Hans,

I just stumbled over some very old code of mine, and now I'm trying to make it just run again.
I get some error messages at crackConvert.py, in crackEdgeMap:

File "geomap/subpixelWatersheds/crackConvert.py", line 22, in crackEdgeMap
    for dart in result.face(0).holeContours().next().phiOrbit():
AttributeError: '_ContourIterator' object has no attribute 'next'

Which is true, of course.
AFAICS, sortEdgesDirectly() and marking the border edges are processed in crackedgemap.cxx, CrackEdgeMapGenerator::initializeMap already, making the crackEdgeMap in crackConvert.py a three liner:

def crackEdgeMap(labelImage, initLabelImage = True, eightConnectedRegions = True):
    result = crackEdgeGraph(labelImage, eightConnectedRegions = eightConnectedRegions)
    result.initializeMap(initLabelImage)
    return result

That's all for the moment. :-)

Split up tests into multiple files

For a long time, (Python) unit tests were lumped together in one (or a few) big file, without obvious relation between the modules being tested and the tests itself. We should

  • separate the tests into several files, probably in appropriate subdirectories
  • make sure there are no duplicates (e.g. from previous splitting work)
  • and make the tests work again, of course.
    (And write new ones, but that's not this issue.)

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.