I have images, all of them have borders.
borders from left,right,top,bottom size.
And border is simple or is just solid color,
or reflection of part of picture
for example reflection, from the left, it's part of picture 30px from left side of picture
detect border of image
-
- Posts: 7
- Joined: 2014-07-09T06:15:04-07:00
- Authentication code: 6789
Re: detect border of image
You could -trim the image and see if the size changes that would detect the solid colour. If it does not change it must be some other type of border
- fmw42
- Posts: 25562
- Joined: 2007-07-02T17:14:51-07:00
- Authentication code: 1152
- Location: Sunnyvale, California, USA
Re: detect border of image
Please always provide your IM version and platform, since syntax differs. Also can you post a couple of your images so we can see what type of borders you have and to experiment with solutions. You can post to some free hosting such as dropbox.com and put the URL here.
Please read the top-most topic in this forum at viewtopic.php?f=1&t=9620
Detecting a constant color is likely pretty simple, but a reflection will be much harder.
Please read the top-most topic in this forum at viewtopic.php?f=1&t=9620
Detecting a constant color is likely pretty simple, but a reflection will be much harder.
-
- Posts: 12159
- Joined: 2010-01-23T23:01:33-07:00
- Authentication code: 1151
- Location: England, UK
Re: detect border of image
As Fred says, samples would help.
Perhaps all the borders are characterised by a sharp transition that runs most or all the way across the image, so an edge detector might find them.
Perhaps all the borders are characterised by a sharp transition that runs most or all the way across the image, so an edge detector might find them.
snibgo's IM pages: im.snibgo.com