Stabilization algorithm does not allow to correct cropping down

Discussion in 'I.F.C. - Intelligent Frame Correction' started by hirscho, April 10, 2011.

  1. hirscho

    hirscho Portal Pro

    Joined:
    December 24, 2006
    Messages:
    186
    Likes Received:
    10
    Ratings:
    +15 / 0
    Home Country:
    Germany Germany
    Show System Specs
    Hi Marvman

    I am using I.F.C. with

    - Stabilization factor = 5
    - Stabilization tolerance = 3

    My expectation is, that I.F.C. reduces the cropping of an edge down to zero if no black pixel is found (bound = 0). Actually it never does.

    Please have look at the log. The right bound is always 0, but I.F.C. continues to crop 5 pixel.

    2011-04-10 09:20:03.062500 [Debug][(7)]: I.F.C.: grabbed frame: width: 720, height: 576
    2011-04-10 09:20:03.062500 [Debug][(7)]: I.F.C.: Bounds: 9 , 10 , 0 , 0
    2011-04-10 09:20:03.062500 [Debug][(7)]: I.F.C.: isSingleBlackBar: False
    2011-04-10 09:20:03.062500 [Debug][(7)]: I.F.C.: isSingleBlackBar: False
    2011-04-10 09:20:03.062500 [Debug][(7)]: I.F.C.: isSideBlackBar: False
    2011-04-10 09:20:03.062500 [Debug][(7)]: I.F.C.: isSideBlackBar: False
    2011-04-10 09:20:03.062500 [Debug][(7)]: I.F.C.: isDoubleBlackBar: False
    2011-04-10 09:20:03.062500 [Debug][(7)]: I.F.C.: isDoubleBlackBar: False
    2011-04-10 09:20:03.062500 [Debug][(7)]: I.F.C.: No Pattern found!
    2011-04-10 09:20:05.062500 [Debug][(7)]: I.F.C.: Stop Counter: 1, Stop Counter End: 2
    2011-04-10 09:20:05.093750 [Debug][(7)]: I.F.C.: grabbed frame: width: 720, height: 576
    2011-04-10 09:20:05.093750 [Debug][(7)]: I.F.C.: Bounds: 9 , 10 , 0 , 0
    2011-04-10 09:20:05.093750 [Debug][(7)]: I.F.C.: isSingleBlackBar: False
    2011-04-10 09:20:05.093750 [Debug][(7)]: I.F.C.: isSingleBlackBar: False
    2011-04-10 09:20:05.093750 [Debug][(7)]: I.F.C.: isSideBlackBar: False
    2011-04-10 09:20:05.109375 [Debug][(7)]: I.F.C.: isSideBlackBar: False
    2011-04-10 09:20:05.109375 [Debug][(7)]: I.F.C.: isDoubleBlackBar: False
    2011-04-10 09:20:05.109375 [Debug][(7)]: I.F.C.: isDoubleBlackBar: False
    2011-04-10 09:20:05.109375 [Debug][(7)]: I.F.C.: No Pattern found!
    2011-04-10 09:20:05.109375 [Debug][(7)]: I.F.C.: 16:9 detected
    2011-04-10 09:20:05.109375 [Debug][(7)]: I.F.C.: CropSettings before stabilizing Top: 9, Bottom: 10, Left: 0, Right: 0
    2011-04-10 09:20:05.109375 [Debug][(7)]: I.F.C.: Stabilizer: 15
    2011-04-10 09:20:05.109375 [Debug][(7)]: I.F.C.: Stabilizer: 15
    2011-04-10 09:20:05.109375 [Debug][(7)]: I.F.C.: Stabilizer: 0
    2011-04-10 09:20:05.109375 [Debug][(7)]: I.F.C.: Stabilizer: 5
    2011-04-10 09:20:05.109375 [Debug][(7)]: I.F.C.: Stabilized CropSettings Top 15, Bottom 15, Left 0, Right 5
    2011-04-10 09:20:05.109375 [Debug][(7)]: I.F.C.: Final calced CropSettings Top 15, Bottom 15, Left 0, Right 5
    2011-04-10 09:20:05.109375 [Debug][(7)]: I.F.C.: Last faded crop settings: Top: 15, Bottom: 15, Left: 0, Right: 5
    2011-04-10 09:20:07.109375 [Debug][(7)]: I.F.C.: Stop Counter: 0, Stop Counter End: 2
    2011-04-10 09:20:07.140625 [Debug][(7)]: I.F.C.: grabbed frame: width: 720, height: 576
    2011-04-10 09:20:07.140625 [Debug][(7)]: I.F.C.: Bounds: 9 , 10 , 0 , 0
    2011-04-10 09:20:07.140625 [Debug][(7)]: I.F.C.: isSingleBlackBar: False
    2011-04-10 09:20:07.140625 [Debug][(7)]: I.F.C.: isSingleBlackBar: False
    2011-04-10 09:20:07.140625 [Debug][(7)]: I.F.C.: isSideBlackBar: False
    2011-04-10 09:20:07.140625 [Debug][(7)]: I.F.C.: isSideBlackBar: False
    2011-04-10 09:20:07.140625 [Debug][(7)]: I.F.C.: isDoubleBlackBar: False
    2011-04-10 09:20:07.140625 [Debug][(7)]: I.F.C.: isDoubleBlackBar: False
    2011-04-10 09:20:07.140625 [Debug][(7)]: I.F.C.: No Pattern found!
    2011-04-10 09:20:09.140625 [Debug][(7)]: I.F.C.: Stop Counter: 1, Stop Counter End: 2
    2011-04-10 09:20:09.171875 [Debug][(7)]: I.F.C.: grabbed frame: width: 720, height: 576
    2011-04-10 09:20:09.187500 [Debug][(7)]: I.F.C.: Bounds: 9 , 8 , 0 , 0
    2011-04-10 09:20:09.187500 [Debug][(7)]: I.F.C.: isSingleBlackBar: False
    2011-04-10 09:20:09.187500 [Debug][(7)]: I.F.C.: isSingleBlackBar: False
    2011-04-10 09:20:09.187500 [Debug][(7)]: I.F.C.: isSideBlackBar: False
    2011-04-10 09:20:09.187500 [Debug][(7)]: I.F.C.: isSideBlackBar: False
    2011-04-10 09:20:09.187500 [Debug][(7)]: I.F.C.: isDoubleBlackBar: False
    2011-04-10 09:20:09.187500 [Debug][(7)]: I.F.C.: isDoubleBlackBar: False
    2011-04-10 09:20:09.187500 [Debug][(7)]: I.F.C.: No Pattern found!
    2011-04-10 09:20:09.187500 [Debug][(7)]: I.F.C.: no best match found, choose the last bottom cropsetting
    2011-04-10 09:20:09.187500 [Debug][(7)]: I.F.C.: 16:9 detected
    2011-04-10 09:20:09.187500 [Debug][(7)]: I.F.C.: CropSettings before stabilizing Top: 9, Bottom: 10, Left: 0, Right: 0
    2011-04-10 09:20:09.187500 [Debug][(7)]: I.F.C.: Stabilizer: 15
    2011-04-10 09:20:09.187500 [Debug][(7)]: I.F.C.: Stabilizer: 15
    2011-04-10 09:20:09.187500 [Debug][(7)]: I.F.C.: Stabilizer: 0
    2011-04-10 09:20:09.187500 [Debug][(7)]: I.F.C.: Stabilizer: 5
    2011-04-10 09:20:09.187500 [Debug][(7)]: I.F.C.: Stabilized CropSettings Top 15, Bottom 15, Left 0, Right 5
    2011-04-10 09:20:09.187500 [Debug][(7)]: I.F.C.: Final calced CropSettings Top 15, Bottom 15, Left 0, Right 5
    2011-04-10 09:20:09.187500 [Debug][(7)]: I.F.C.: Last faded crop settings: Top: 15, Bottom: 15, Left: 0, Right: 5


    Could you help me to interpret the log?

    Additionally I would like to address an additional feature. Let's assume there is a bound of 1 black pixel at the right side and the stabilization factor is 10. I.F.C would then cut off 10 pixel, which I do not like. Wouldn't it be an option to introduce a lower bound or minimal rounding for cropping, like only crop if more than 5 black pixel are found?

    Regards

    Oliver


     
  2. Google AdSense Guest Advertisement



    to hide all adverts.
  3. Marvman
    • Team MediaPortal

    Marvman Retired Team Member

    Joined:
    November 14, 2007
    Messages:
    1,163
    Likes Received:
    365
    Occupation:
    Application Developer
    Location:
    Bavaria
    Ratings:
    +368 / 0
    Home Country:
    Germany Germany
    Show System Specs
    Hi Oliver,

    sorry I over read your thread.

    Could it be that the stabilizer was previously more then 0?
     
Loading...

Users Viewing Thread (Users: 0, Guests: 0)

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice
  • About The Project

    The vision of the MediaPortal project is to create a free open source media centre application, which supports all advanced media centre functions, and is accessible to all Windows users.

    In reaching this goal we are working every day to make sure our software is one of the best.

             

  • Support MediaPortal!

    The team works very hard to make sure the community is running the best HTPC-software. We give away MediaPortal for free but hosting and software is not for us.

    Care to support our work with a few bucks? We'd really appreciate it!