Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Algorithms
  4. thinning algorithm

thinning algorithm

Scheduled Pinned Locked Moved Algorithms
csharpalgorithmshelpquestion
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    Swati Khanna
    wrote on last edited by
    #1

    someone please help on the thinning algorithm used to identify a character .I am not being able to code the algorithm in c# though i have the whole logic and code written in C . can some1 please help me . the c code is as follows ....how do i code the same in c# please help http://pages.cpsc.ucalgary.ca/~parker/thin.c[^]

    R A 2 Replies Last reply
    0
    • S Swati Khanna

      someone please help on the thinning algorithm used to identify a character .I am not being able to code the algorithm in c# though i have the whole logic and code written in C . can some1 please help me . the c code is as follows ....how do i code the same in c# please help http://pages.cpsc.ucalgary.ca/~parker/thin.c[^]

      R Offline
      R Offline
      riced
      wrote on last edited by
      #2

      After a quick look through the code I think it just translates straight into C#. The only tricky bit is the b parameter to t1a which must be called using ref. I suggest you pick up an introductory C# book. If you understand the C you should have no problems translating it to C#. As a side issue it's generally not a good idea to provide links to code. People will be wary of following them. Why not just copy and paste it - if it's not too long.

      Regards David R

      1 Reply Last reply
      0
      • S Swati Khanna

        someone please help on the thinning algorithm used to identify a character .I am not being able to code the algorithm in c# though i have the whole logic and code written in C . can some1 please help me . the c code is as follows ....how do i code the same in c# please help http://pages.cpsc.ucalgary.ca/~parker/thin.c[^]

        A Offline
        A Offline
        Andrew Kirillov
        wrote on last edited by
        #3

        Hello, Did not run the C version of the algorithm you've pointed, but there are some already made implementation of thinning in C#, which are made in AForge.NET Framework[^]. One example is to use math morphology filters for this: [^]. Another is simple skeletonization filter[^].

        With best regards, Andrew Kirillov AForge.NET

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups