Results 1 to 9 of 9

Thread: Is this forum dead?

  1. #1
    Join Date
    Mar 2012
    Posts
    30

    Default Is this forum dead?

    I posted a question, no answer whatsoever..

    I am having trouble to make imgsrc filters work as expected using the dll. I find any kind of strange behavior.
    I am ready to post the Delphi code I am using if it is needed. The strange thing is that in some conditions which seem to depend from image size or something else they work correctly.

  2. #2
    Join Date
    Mar 2012
    Posts
    30

    Default Re: Is this forum dead?

    Here's an example of filter that went wrong (zoomblur) a before after comparison

    after_zoomblur.jpgbefore_zoomblur.jpg

  3. #3
    Join Date
    Jun 2005
    Location
    Fargo, ND, USA.
    Posts
    110

    Default Re: Is this forum dead?

    Chris is usually pretty quick to respond - not sure what's up with that.

    Can you post your code? I tried ZoomBlur and other than taking a long time to process, it appears to work for me.

    Your output looks like a RowStride problem. Check your dimensions.

  4. #4
    Join Date
    Mar 2012
    Posts
    30

    Default Re: Is this forum dead?

    Paul thank you for your answer,
    I have contacted Chris by email on last week-end and he asked me to post the code I am using by email, I did that, but I am still waiting for a reply. I do hope he's fine. Thanks yes it looks like something is wrong with the color channels, maybe a rowstride but I am quite confident I am inputing the right size, also it does not happen with all images, it seems related to image size, if it was a rowstride problem it would be consistent for all image size.

    Can I ask do you use C++ code or Delphi?

    Quote Originally Posted by paul s View Post
    Chris is usually pretty quick to respond - not sure what's up with that.

    Can you post your code? I tried ZoomBlur and other than taking a long time to process, it appears to work for me.

    Your output looks like a RowStride problem. Check your dimensions.

  5. #5
    Join Date
    Jun 2005
    Location
    Fargo, ND, USA.
    Posts
    110

    Default Re: Is this forum dead?

    I will try some other aspect ratios as a test.

    I don't use C++ or Delphi. I use the ImgSource DLL in WinBatch code.


    Paul Samuelson

  6. #6
    Join Date
    Jun 2005
    Location
    Fargo, ND, USA.
    Posts
    110

    Default Re: Is this forum dead?

    Ok, I tried several different sizes and aspect ratios and ZoomBlur always returned results as expected.

    Paul

  7. #7
    Join Date
    Mar 2006
    Posts
    805

    Default Re: Is this forum dead?

    Hi,

    Yes this looks like a rowstride issue. Double check that you are telling the ZoomBlur call the correct number of bytes per pixel and bytes per pixel row for both input and output.

    Sorry about not replying promptly. It looks like we have an over-aggressive spam filter that is throwing all of our forum notifications away. I didn't know anyone was posting ! Sorry, again.

    -c

  8. #8
    Join Date
    Mar 2006
    Posts
    805

    Default Re: Is this forum dead?

    I wrote a little test app to load an image, resize it to all sizes smaller than the original, do a zoom blur on the resized image - that will cover all possible aspect ratios. I don't see the problem your sample shows.

    Code:
        UINT32 w, h;
        HISSRC hSrc = is5_OpenFileSource(TEMP"me.jpg");
        HGLOBAL hImg = is5_ReadImage(hSrc, &w, &h, 0, 0);
        is5_CloseSource(hSrc);
    
    
        for (UINT32 h2=h;h2>=10;h2--)
        {
           for (UINT32 w2=w;w2>=10;w2--)
           {
              POINT center = {w2/8, h2/8};
    
              BYTE *pr = new BYTE[w2 * h2 * 3];
              BYTE *prz = new BYTE[w2 * h2 * 3];
              is5_ResizeImage((BYTE*)hImg, w, h, w * 3, pr, w2, h2, w2 * 3, 3, 0, 0);
    
              is5_ZoomBlur(pr, w2, h2, 3, w2 * 3, prz, w2 * 3, .250, &center, 7 | 0);
    
              is5_DrawRGB(dc.m_hDC, pr, w2, h2, w2 * 3, 0, 0, 0);
              is5_DrawRGB(dc.m_hDC, prz, w2, h2, w2 * 3, w2, 0, 0);
    
              delete [] pr;
              delete [] prz;
           }
        }
    
        GlobalFree(hImg);
    That will take a looonnnng time to run, if your image image is larger than a few pixels...

  9. #9
    Join Date
    Mar 2012
    Posts
    30

    Default Re: Is this forum dead?

    Chris thanks for answering finally, well I honestly was surprised to not get any answer because you usually reply very fast (sometimes within minutes). I will be studying your zoomblur sample code and try to make it a usable code pattern for my delphi implementation.
    Thanks

Posting Permissions

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