Drazick

Members
  • Content Count

    10
  • Joined

  • Last visited

Posts posted by Drazick


  1. OK, I managed to write something and it seems to work well.

    If someone knows better to get results like Photoshop, Please let me know.

    Here it is:

    Input and Parameters (Just Like in Photoshop): A - Original Image, Amout, Radius, Threshold.

    B - Blur image A using Gaussian Blur with Radius.

    C - abs(A - B)

    Mask = 1 Where Pixels of C > Threshold, 0 otherwise.

    Output = A + Mask * (Amount * C)

    That's it.

    I hope it would work for you.

    For anything that would make it more Photoshop / Gimp comparable, let me know.

    Thanks.


  2. When you say "Motion Blur", What's the kernel you use?

    Simple averaging in a direction?

    I would like to try it on CPU.

    I'll try to give results later.

    Update:

    Ok, got some results.

    This is the configuration:

    Q8200 @ 2100MHZ

    4GB Memory.

    nVidia GTX460

    1280 x 960 - Matlab

    BlurringKernel = fspecial('motion', length, 25)

    Time:

    Length = 50 - 0.29 s

    Length = 100 - 0.9 s

    Length = 200 - 5.5 s

    uTorrent and Chrome on background.

    Matlab is maybe as fast as it gets in those calculations (CPU).

    So your results are nothing but stunning.


  3. Actually I'm just prototyping something on Matlab.

    If it works I could try write it for Paint.Net.

    Hence I just need the basic Math behind it.

    I saw many algorithms for USM, yet I need something similar to Phothsop / Gimp (With the Threshols Parameter).

    If you remember, I asked you once in your blog if you could ever link between the two.

    Thanks.