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 Portal Pro

    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

    Attached Files:

    • Team MediaPortal

    Marvman Development Group

    System Specs
    Hi Oliver,

    sorry I over read your thread.

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

Share This Page

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

Running the latest version?

V1.3.0 FINAL - released March 2013
Releasenews | Download
Changelog
 | Requirements
HTPC
Team-MediaPortal
 
About
Contact |  Press
Partners