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
Improvement Suggestions
Zoom : adding 'no aspect ratio change' in general settings
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="knutinh" data-source="post: 69468" data-attributes="member: 14776"><p>I imagine that this "black area" detection would have to be carried out within the DirectShow filters, or maybe even as a self-contained filter as it is working with pixel data directly.</p><p></p><p>Performance could be an issue unless someone can describe a really fast and robust algorithm. Perhaps run the algo only on channel change and aspect change (implying that the user is not happy with the current look), thereby reducing average load.</p><p></p><p>Is it enough to "sample" a few chosen blocks, or should every "black area" pixel be fed into this algo? Does it make sense to demand that a pixel is 0,0,0 to be black, or do we need some threshold to allow for analog noise etc?</p><p></p><p>The model would be something like:</p><p></p><p><span style="color: black">█████████logo</span></p><p><span style="color: black">█</span>active image area..<span style="color: black">█</span></p><p><span style="color: black">█</span>active image area..<span style="color: black">█</span></p><p><span style="color: black">█</span>active image area..<span style="color: black">█</span></p><p><span style="color: black">█</span>active image area..<span style="color: black">█</span></p><p><span style="color: black">█</span>active image area..<span style="color: black">█</span></p><p><span style="color: black">█</span>active image area..<span style="color: black">█</span></p><p><span style="color: black">████████████</span></p><p><span style="color: black">█Potential text here.█</span></p><p></p><p>A simple way would be finding every vertical and horisontal line containing 60% or 90% black pixels ("black" defined somewhere). From line 1 downwards find the first line that is not black, this is the up border. Repeat for bottom, left and right.</p><p></p><p>k</p></blockquote><p></p>
[QUOTE="knutinh, post: 69468, member: 14776"] I imagine that this "black area" detection would have to be carried out within the DirectShow filters, or maybe even as a self-contained filter as it is working with pixel data directly. Performance could be an issue unless someone can describe a really fast and robust algorithm. Perhaps run the algo only on channel change and aspect change (implying that the user is not happy with the current look), thereby reducing average load. Is it enough to "sample" a few chosen blocks, or should every "black area" pixel be fed into this algo? Does it make sense to demand that a pixel is 0,0,0 to be black, or do we need some threshold to allow for analog noise etc? The model would be something like: [color=black]█████████logo[/color] [color=black]█[/color]active image area..[color=black]█[/color] [color=black]█[/color]active image area..[color=black]█[/color] [color=black]█[/color]active image area..[color=black]█[/color] [color=black]█[/color]active image area..[color=black]█[/color] [color=black]█[/color]active image area..[color=black]█[/color] [color=black]█[/color]active image area..[color=black]█[/color] [color=black]████████████[/color] [color=black]█Potential text here.█[/color] A simple way would be finding every vertical and horisontal line containing 60% or 90% black pixels ("black" defined somewhere). From line 1 downwards find the first line that is not black, this is the up border. Repeat for bottom, left and right. k [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
Development
Improvement Suggestions
Zoom : adding 'no aspect ratio change' in general settings
Contact us
RSS
Top
Bottom