Giter Site home page Giter Site logo

pegbis's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

pegbis's Issues

How to run the code?

Since there are many .py files and main makes reference to these files. How can we run the code?. It is showing undefined name reference in main for all the references made to other .py files.
Please help

A Question about the code

IN main.py the 47 line if (x < width - 1) and (y < height - 2):
I think it should be " if (x < width - 1) and (y < height - 1):"

Running main.py only displays an empty plot

So I've tried running the main.py file with all the images in the data folder, but it only displays an empty plot.

I'm using python 3.6.5.

Please let me know if any additional details are required.

some functions are inconsistent with the original C++ codes.

Anyway, it works fine for tested images, but some codes are confusing

  1. The sumation of filter mask in the normalization is wrong.

Original C++ version:

/* normalize mask so it integrates to one */
static void normalize(std::vector<float> &mask) {
  int len = mask.size();
  float sum = 0;
  for (int i = 1; i < len; i++) {
    sum += fabs(mask[i]);
  }
  sum = 2*sum + fabs(mask[0]);
  for (int i = 0; i < len; i++) {
    mask[i] /= sum;
  }
}```

> This version in filter.py#L30 :

```python
2 * np.sum(np.absolute(mask)) + abs(mask[0])

maybe the + before abs(mask[0]) should be -.

  1. The convolve_even(src, mask) actually does not flip the output.

  2. In make_fgauss: mask[i] = math.exp(-0.5 * math.pow(i / sigma, i / sigma)), the math.pow is not correctly used.

  3. At main.py#L47, if (x < width - 1) and (y < height - 2):, here y < height - 1.

In my workplace, the git connection is banned, so I can't directly pull a request. ๐Ÿ˜ž

segment_graph

ModuleNotFoundError: No module named 'segment_graph'
unable to install segment_graph

using google colab

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.