Giter Club home page Giter Club logo

Comments (5)

xwjabc avatar xwjabc commented on August 23, 2024 1

Yes, it is possible. You may need to modify the test function (see: https://github.com/xwjabc/hed/blob/master/hed.py#L257) and use your own image as input.

from hed.

peiyunju avatar peiyunju commented on August 23, 2024

Excuse me, if I use the canny edge processing algorithm, how do I get ODS and OIS? Because I want to use ODS and OIS to compare canny and HED algorithms to compare their gaps in processing at the edge.

from hed.

xwjabc avatar xwjabc commented on August 23, 2024

The current edge evaluation process in HED is:
(1) Generate probabilistic edge maps w/ HED network (i.e., .mat files in mat folder and png images in png folder) -> (2) NMS process to convert the probabilistic edge maps to thinned edge maps (i.e., png images in the nms folder) -> (3) Evaluate the thinned edge maps.

For Canny edge detection algorithm, I think the outputted edge maps are already processed after NMS. Thus, you may directly evaluate such edge maps using step (3). You can refer to this part for the evaluation of the thinned edge maps.

from hed.

peiyunju avatar peiyunju commented on August 23, 2024

After taking a look at your test code, I would like to know how to generate a MATAT file from a PNG image of Canny

from hed.

xwjabc avatar xwjabc commented on August 23, 2024

I think you do no need to generate MAT file for the step (3) since its input format is png. You can directly feed the generated png files from Canny edge detector into the evaluation step.

If you still need to save images as MAT files, you can use savemat() function in scipy.io. See this line for an example.

from hed.

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.