Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #229040

Re: color border in image, drop everything outside of it

From Emanuel Berg <moasenwood@zoho.eu>
Newsgroups linux.debian.user
Subject Re: color border in image, drop everything outside of it
Date 2020-11-24 22:40 +0100
Message-ID <BeOcx-7Na-1@gated-at.bofh.it> (permalink)
References (3 earlier) <BdOoh-469-3@gated-at.bofh.it> <BdP0Z-4yw-1@gated-at.bofh.it> <BecqB-1TO-3@gated-at.bofh.it> <BecAh-1YW-1@gated-at.bofh.it> <BeMu5-6Gi-3@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


David Wright wrote:

>     Original                     Scanned
>
> ddddddddddddddddddddddddd    →→→→→→→→→→→→→→→→→→→→→→→→→
> ddddddddddddddddddddddddd    →→→→→→→→→→→→→→→→→→→→→→→→→
> ddddsssssssssssssssssdddd    →→→→sssssssssssssssss↓↓↓↓
> ddddskkkkkkkkkkkkkkksdddd    →→→→skkkkkkkkkkkkkkks↓↓↓↓
> ddddskkkkkkkkkkkkkkksdddd    →→→→skkkkkkkkkkkkkkks↓↓↓↓
> ddddskkkkkkkssssskkksdddd    →→→→skkkkkkkssssskkks↓↓↓↓
> ddddskkkkkkksddddskksdddd    →→→→skkkkkkksddddskks↓↓↓↓
> ddddskkkkkkksdddddsssdddd    →→→→skkkkkkksdddddsss↓↓↓↓
> ddddskkkkkkksdddddddddddd    →→→→skkkkkkks←←←←←←←←↓↓↓↓
> ddddskkkkkkksdddddddddddd    →→→→skkkkkkks←←←←←←←←↓↓↓↓
> ddddskkkkkkksdddddddddddd    →→→→skkkkkkks←←←←←←←←↓↓↓↓
> ddddskkkkkkksdddddddddddd    →→→→skkkkkkks←←←←←←←←↓↓↓↓
> ddddskkkkkkksdddddddddddd    →→→→skkkkkkks←←←←←←←←↓↓↓↓
> dddddskkkkkkksddddddddddd    →→→→→skkkkkkks←←←←←←←↓↓↓↓
> ddddddskkkkkkksdddddddddd    →→→→→→skkkkkkks←←←←←←↓↓↓↓
> dddddddskkkkkkksddddddddd    →→→→→→→skkkkkkks←←←←←↓↓↓↓
> ddddddskkkkkkkkksdddddddd    →→→→→→skkkkkkkkks←←←←↓↓↓↓
> dddddskkkkkkkkkkksddddddd    →→→→→skkkkkkkkkkks←←←↓↓↓↓
> ddddskkkkkkkkkkkkksdddddd    →→→→skkkkkkkkkkkkks←←↓↓↓↓
> ddddssssssssssssssssddddd    →→→→ssssssssssssssss←↓↓↓↓
> ddddddddddddddddddddddddd    →→→→→→→→→→→→→→→→→→→→→→→→→
> ddddddddddddddddddddddddd    →→→→→→→→→→→→→→→→→→→→→→→→→
>
>     Achieved                     Desired
>
> .........................    .........................
> .........................    .........................
> ....sssssssssssssssss....    ....sssssssssssssssss....
> ....skkkkkkkkkkkkkkks....    ....skkkkkkkkkkkkkkks....
> ....skkkkkkkkkkkkkkks....    ....skkkkkkkkkkkkkkks....
> ....skkkkkkkssssskkks....    ....skkkkkkkssssskkks....
> ....skkkkkkksddddskks....    ....skkkkkkks....skks....
> ....skkkkkkksdddddsss....    ....skkkkkkks.....sss....
> ....skkkkkkks............    ....skkkkkkks............
> ....skkkkkkks............    ....skkkkkkks............
> ....skkkkkkks............    ....skkkkkkks............
> ....skkkkkkks............    ....skkkkkkks............
> ....skkkkkkks............    ....skkkkkkks............
> .....skkkkkkks...........    .....skkkkkkks...........
> ......skkkkkkks..........    ......skkkkkkks..........
> .......skkkkkkks.........    .......skkkkkkks.........
> ......skkkkkkkkks........    ......skkkkkkkkks........
> .....skkkkkkkkkkks.......    .....skkkkkkkkkkks.......
> ....skkkkkkkkkkkkks......    ....skkkkkkkkkkkkks......
> ....ssssssssssssssss.....    ....ssssssssssssssss.....
> .........................    .........................
> .........................    .........................

OK, nice work, good point!

Well, you have to extent the algorithm so that when it hits a dead
end, it doesn't stop, instead it tries the other directions.

Or maybe do it like this: just rush forward until you hit
something. When you do, proceed around it as tightly as possible
until you reach the original position!

BTW maybe the AI people already have a true and tested algorithm
for this problem?

-- 
underground experts united
http://user.it.uu.se/~embe8573
https://dataswamp.org/~incal

Back to linux.debian.user | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

color border in image, drop everything outside of it Emanuel Berg <moasenwood@zoho.eu> - 2020-11-15 00:40 +0100
  Re: color border in image, drop everything outside of it Michael uplawski <linux-gate@don.blech.e4ward.com> - 2020-11-15 10:00 +0100
    Re: color border in image, drop everything outside of it Emanuel Berg <moasenwood@zoho.eu> - 2020-11-15 10:10 +0100
      Re: color border in image, drop everything outside of it Michael uplawski <linux-gate@don.blech.e4ward.com> - 2020-11-15 11:10 +0100
        Re: color border in image, drop everything outside of it <tomas@tuxteam.de> - 2020-11-15 11:30 +0100
        Re: color border in image, drop everything outside of it Emanuel Berg <moasenwood@zoho.eu> - 2020-11-22 03:30 +0100
  Re: color border in image, drop everything outside of it <tomas@tuxteam.de> - 2020-11-15 10:40 +0100
    Re: color border in image, drop everything outside of it The Wanderer <wanderer@fastmail.fm> - 2020-11-15 11:30 +0100
      Re: color border in image, drop everything outside of it Jeremy Ardley <jeremy@ardley.org> - 2020-11-15 12:00 +0100
      Re: color border in image, drop everything outside of it <tomas@tuxteam.de> - 2020-11-15 12:10 +0100
        Re: color border in image, drop everything outside of it The Wanderer <wanderer@fastmail.fm> - 2020-11-15 12:50 +0100
          Re: color border in image, drop everything outside of it <tomas@tuxteam.de> - 2020-11-15 13:30 +0100
      Re: color border in image, drop everything outside of it Michael uplawski <linux-gate@don.blech.e4ward.com> - 2020-11-15 12:10 +0100
        Re: color border in image, drop everything outside of it Michael uplawski <linux-gate@don.blech.e4ward.com> - 2020-11-15 12:50 +0100
      Re: color border in image, drop everything outside of it Emanuel Berg <moasenwood@zoho.eu> - 2020-11-22 03:20 +0100
    Re: color border in image, drop everything outside of it mick crane <mick.crane@gmail.com> - 2020-11-15 11:40 +0100
    Re: color border in image, drop everything outside of it Emanuel Berg <moasenwood@zoho.eu> - 2020-11-22 03:20 +0100
      Re: color border in image, drop everything outside of it David Wright <deblis@lionunicorn.co.uk> - 2020-11-22 04:40 +0100
        Re: color border in image, drop everything outside of it Emanuel Berg <moasenwood@zoho.eu> - 2020-11-22 05:20 +0100
          Re: color border in image, drop everything outside of it David Wright <deblis@lionunicorn.co.uk> - 2020-11-23 06:20 +0100
            Re: color border in image, drop everything outside of it Emanuel Berg <moasenwood@zoho.eu> - 2020-11-23 06:30 +0100
              Re: color border in image, drop everything outside of it David Wright <deblis@lionunicorn.co.uk> - 2020-11-24 20:50 +0100
                Re: color border in image, drop everything outside of it Emanuel Berg <moasenwood@zoho.eu> - 2020-11-24 22:40 +0100
                Re: color border in image, drop everything outside of it <tomas@tuxteam.de> - 2020-11-24 22:50 +0100
                Re: color border in image, drop everything outside of it Emanuel Berg <moasenwood@zoho.eu> - 2020-11-26 01:30 +0100
                Re: color border in image, drop everything outside of it <tomas@tuxteam.de> - 2020-11-26 09:50 +0100
                Re: color border in image, drop everything outside of it Emanuel Berg <moasenwood@zoho.eu> - 2020-11-26 12:30 +0100
                Re: color border in image, drop everything outside of it <tomas@tuxteam.de> - 2020-11-26 12:40 +0100
                Re: color border in image, drop everything outside of it Emanuel Berg <moasenwood@zoho.eu> - 2020-11-26 12:50 +0100
                Re: color border in image, drop everything outside of it <tomas@tuxteam.de> - 2020-11-26 14:10 +0100
      Re: color border in image, drop everything outside of it <tomas@tuxteam.de> - 2020-11-22 10:10 +0100
        Re: color border in image, drop everything outside of it Emanuel Berg <moasenwood@zoho.eu> - 2020-11-22 10:30 +0100

csiph-web