SPONSORS:






User Tag List

Results 1 to 8 of 8
  1. #1
    Junior Member
    Join Date
    Dec 2000
    Posts
    16
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    SYS_CompareBitmap failed for two identical images

    Hi,

    Somehow, I always get "False" for compareing two identical bitmap files through Silk.

    I have compared throught SilkTest Bitmap Tool. I have all the statistics same except Number of difference pixels (376) and Percent of different pixels (0.40%)

    Could you please help me ?

    Thanks,



    ------------------

  2. #2
    Senior Member
    Join Date
    May 2002
    Posts
    448
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: SYS_CompareBitmap failed for two identical images

    1: Try setting another value for
    "OPT_BITMAP_PIXEL_TOLERANCE".

    2: Try using "GetBitmapCRC" method and compare against a value captured either with prior "GetBitmapCRC" or
    "SYS_GetBitmapCRC".
    Note:
    1: The "GetBitmapCRC" interprets the coordinates (0,0) as the top-left corner of the window’s frame. To capture a bitmap of a window’s client area only, specify
    "window.ClientArea".
    2: It is always a good idea to bring the window whose image is captured to a perdefined stae. The "Size" method could be uselfull here.


    ------------------
    never say die
    Life, that dares send, A challenge to his end,
    And when it comes say, Welcome friend.

  3. #3
    Junior Member
    Join Date
    Dec 2000
    Posts
    16
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: SYS_CompareBitmap failed for two identical images

    Thank you all for the reply.

    I have ran the test on same system; therefore, it cannot be the color or video setting.
    It was just small tiny pixel difference made this problem for me. The resolution is using the mask or increase the "compare pixels" agent setting. However, I do not think this is efficient enough. Anybody knows magic knowledge for this?

    I am not familar with this function. I just wanna to know what is the use of this. I understand now that this is not very well developed. I should definitely stay away from this

    Thank you all for your responses.

    ------------------

  4. #4
    Senior Member
    Join Date
    Jul 2001
    Posts
    147
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: SYS_CompareBitmap failed for two identical images


    I came across a very similar situation. To overcome this problem I set "Bitmap match count" to 0, in Options -> Agent -> Bitmap tab.

    Hope this helps.

    ------------------
    Who Tests The Tester...
    Who Tests The Tester...

  5. #5
    Senior Member
    Join Date
    Dec 2001
    Location
    San Jose, CA
    Posts
    102
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: SYS_CompareBitmap failed for two identical images

    Hi livekorea,

    Does it happen every time with newly loaded image or after having the same image for quite sometimes on the screen?

    I encountered similar problem if the image was on screen for quite sometimes like 4 minutes or so.

    Reloading the image helped to correct the comparison.

    Michael

    ------------------

  6. #6
    Senior Member
    Join Date
    Jun 2000
    Location
    Chicago, IL USA
    Posts
    383
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: SYS_CompareBitmap failed for two identical images

    I rarely use bitmaps, but I seem to remember a common "gotcha" was when you have a different color depth on the computer used to capture the bitmap and the one used for your test.

    Compare the "number of colors" settings on the Display settings control panel.

    ------------------
    Rob Kapteyn
    Rob Kapteyn, CSTE
    RobKapteyn@gmail.com

  7. #7
    Senior Member
    Join Date
    Nov 1999
    Location
    Eagle, ID,USA
    Posts
    1,035
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: SYS_CompareBitmap failed for two identical images

    comparing on a machine with a different video card than the one it was created with will result in failure as well. Stay away from bitmap compares if at all possible.

    ------------------
    Have you ever noticed? Anybody going slower than you is an idiot, and anyone going faster than you is a maniac.

  8. #8
    Junior Member
    Join Date
    Dec 2000
    Posts
    16
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: SYS_CompareBitmap failed for two identical images

    --- Problem solved

    Great!!!

    Thank you all
    It is now working for me after changing few agent settings from all of above advices.

    Also, I am using GetBitmapCRC ().


    ------------------

 

 

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

vBulletin Optimisation provided by vB Optimise v2.6.0 Beta 4 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
User Alert System provided by Advanced User Tagging v3.0.9 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Questions / Answers Form provided by vBAnswers (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
vBNominatevBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Feedback Buttons provided by Advanced Post Thanks / Like (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Username Changing provided by Username Change (Free) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
BetaSoft Inc.
Digital Point modules: Sphinx-based search
All times are GMT -8. The time now is 02:36 PM.

Copyright BetaSoft Inc.