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. C#
  4. Detect a line in an image then delete it

Detect a line in an image then delete it

Scheduled Pinned Locked Moved C#
helptutorialquestion
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
    snouto
    wrote on last edited by
    #1

    hi guys , i have an image that after deskewing it , a black slopped line appear at the end of the image , it is always black in color . i need to remove that line from the image how can i do that i searched the internet and i found an image processing library called aforge , but i actually don't know how to use i to detect that line and then remove it successfully. Any help will be greatly appreciated.... Thanks in advance..

    Human knowledge belongs to the world.

    L realJSOPR 2 Replies Last reply
    0
    • S snouto

      hi guys , i have an image that after deskewing it , a black slopped line appear at the end of the image , it is always black in color . i need to remove that line from the image how can i do that i searched the internet and i found an image processing library called aforge , but i actually don't know how to use i to detect that line and then remove it successfully. Any help will be greatly appreciated.... Thanks in advance..

      Human knowledge belongs to the world.

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      if the picture is small, then use Bitmap Class. Use method GetPixel and SetPixel for that. These 2 methods is slow, that's why, if the file is small, then it's ok, if image is bigger, then search in codeproject, there is a library using unsafe function for that and faster.

      1 Reply Last reply
      0
      • S snouto

        hi guys , i have an image that after deskewing it , a black slopped line appear at the end of the image , it is always black in color . i need to remove that line from the image how can i do that i searched the internet and i found an image processing library called aforge , but i actually don't know how to use i to detect that line and then remove it successfully. Any help will be greatly appreciated.... Thanks in advance..

        Human knowledge belongs to the world.

        realJSOPR Offline
        realJSOPR Offline
        realJSOP
        wrote on last edited by
        #3

        Instead of trying to remove the line, I'd try to find out why it's there to begin with. There might be an issue with your code.

        .45 ACP - because shooting twice is just silly
        -----
        "Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997
        -----
        "The staggering layers of obscenity in your statement make it a work of art on so many levels." - J. Jystad, 2001

        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