home
products
contribute
download
documentation
forum
Home
Forums
New posts
Search forums
What's new
New posts
All posts
Latest activity
Members
Registered members
Current visitors
Donate
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Search titles only
By:
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
MediaPortal 1
Development
General Development (no feature request here!)
AutoCropper plugin
Contact us
RSS
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="jawbroken" data-source="post: 71345" data-attributes="member: 14372"><p>Because the middle of the frame could be dark and hard to determine picture content. This way you get sample points across the frame, but weighted towards centre content, which gets sampled more. It is not as complicated as it looks, just a simple lookup table and a multiplication you have to do anyway to determine sample points.</p><p></p><p>The pictures show sample points. For example, if you pick a row in the first picture and scan across it, the points to sample are the points where you cross the blue line. I have given it a shot and it works very well for image content determination. I will give you some code, for an example.</p><p></p><p><a href="http://pastebin.team-mediaportal.com/10378" target="_blank">http://pastebin.team-mediaportal.com/10378</a></p><p></p><p>So it works pretty much like your random sampling worked, except instead of random points you can just multiply samplePoints<em> by the image width for all i and get a series of sample points that are well distributed for finding image content.</em></p><p><em></em></p><p><em>Perhaps you have a better solution for a good sampling pattern, I would be happy to hear of it.</em></p><p><em></em></p><p><em>Thanks,</em></p><p><em> Daniel</em></p></blockquote><p></p>
[QUOTE="jawbroken, post: 71345, member: 14372"] Because the middle of the frame could be dark and hard to determine picture content. This way you get sample points across the frame, but weighted towards centre content, which gets sampled more. It is not as complicated as it looks, just a simple lookup table and a multiplication you have to do anyway to determine sample points. The pictures show sample points. For example, if you pick a row in the first picture and scan across it, the points to sample are the points where you cross the blue line. I have given it a shot and it works very well for image content determination. I will give you some code, for an example. [url]http://pastebin.team-mediaportal.com/10378[/url] So it works pretty much like your random sampling worked, except instead of random points you can just multiply samplePoints[i] by the image width for all i and get a series of sample points that are well distributed for finding image content. Perhaps you have a better solution for a good sampling pattern, I would be happy to hear of it. Thanks, Daniel[/i] [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
Development
General Development (no feature request here!)
AutoCropper plugin
Contact us
RSS
Top
Bottom