Jump to content

Recommended Posts

Posted

Hi,

 

anybody aware of a method to remove motion blur in Affinity?

Having an image of night sky with star trails of e.g. 7px length resulting from long exposure, assuming all are perfectly parallel and in the same angle. Every star (of 1-2px light color) is stretched over 7px, and clearly different from much darker sky.

 

My idea would be to replace any 7px trail by the 1px having the sum of all light pixels (3 to the right and left, custom filter), and letting the dark background untouched (fill in 3px to every side of trail with average of background pixels, similar to inpatient or dust & scratch removal).

Mac mini M1 A2348 | MBP M3 

Windows 11 - AMD Ryzen 9 5900x - 32 GB RAM - Nvidia GTX 1080

LG34WK950U-W, calibrated to DCI-P3 with LG Calibration Studio / Spider 5 | Dell 27“ 4K

iPad Air Gen 5 (2022) A2589

Special interest into procedural texture filter, edit alpha channel, RGB/16 and RGB/32 color formats, stacking, finding root causes for misbehaving files, finding creative solutions for unsolvable tasks, finding bugs in Apps.

I use iPad screenshots and videos even in the Desktop section of the forum when I expect no relevant difference.

 

Posted (edited)

What you describe is similar to an approach called "Deconvolution". As far as I am concerned it is not implemented in Affinity. Smart Deblur has a motion blur deconvolution (I have no experiences with it).
You can find implementations of deconvolution in RawTherapee and gmic (plugin collection that also works in Affinity Photo) but as far as I am concerned these can only be applied to circular blurs, not to motion blurs. In general, you are very quickly in advanced math space with deblurring.

Edited by d_jan
clarification
Posted
Just now, d_jan said:

these can only be applied to circular blurs

But are star trails not circular? The pole may be out of frame but they would be curved.

Regardless, I expect the use of much heavy math(s).

Mac Pro (Late 2013) Mac OS 12.7.6 
Affinity Designer 2.6.0 | Affinity Photo 2.6.0 | Affinity Publisher 2.6.0 | Beta versions as they appear.

I have never mastered color management, period, so I cannot help with that.

Posted
30 minutes ago, Old Bruce said:

But are star trails not circular? The pole may be out of frame but they would be curved.

Regardless, I expect the use of much heavy math(s).

Yes in general. But depending on some factors like focal length / field of view, exposure time etc, you might use linear as approximation to simplify.

Mac mini M1 A2348 | MBP M3 

Windows 11 - AMD Ryzen 9 5900x - 32 GB RAM - Nvidia GTX 1080

LG34WK950U-W, calibrated to DCI-P3 with LG Calibration Studio / Spider 5 | Dell 27“ 4K

iPad Air Gen 5 (2022) A2589

Special interest into procedural texture filter, edit alpha channel, RGB/16 and RGB/32 color formats, stacking, finding root causes for misbehaving files, finding creative solutions for unsolvable tasks, finding bugs in Apps.

I use iPad screenshots and videos even in the Desktop section of the forum when I expect no relevant difference.

 

Posted
35 minutes ago, d_jan said:

What you describe is similar to an approach called "Deconvolution". As far as I am concerned it is not implemented in Affinity. Smart Deblur has a motion blur deconvolution (I have no experiences with it).
You can find implementations of deconvolution in RawTherapee and gmic (plugin collection that also works in Affinity Photo) but as far as I am concerned these can only be applied to circular blurs, not to motion blurs. In general, you are very quickly in advanced math space with deblurring.

I experimented a bit with gmic (when on Windows), need to re-install again on M1 Mac where should be available now.

Mac mini M1 A2348 | MBP M3 

Windows 11 - AMD Ryzen 9 5900x - 32 GB RAM - Nvidia GTX 1080

LG34WK950U-W, calibrated to DCI-P3 with LG Calibration Studio / Spider 5 | Dell 27“ 4K

iPad Air Gen 5 (2022) A2589

Special interest into procedural texture filter, edit alpha channel, RGB/16 and RGB/32 color formats, stacking, finding root causes for misbehaving files, finding creative solutions for unsolvable tasks, finding bugs in Apps.

I use iPad screenshots and videos even in the Desktop section of the forum when I expect no relevant difference.

 

Posted

Thanks for all your replies. I don't intend spending extra money or using other apps, just curious if this is possible with any kind of workflow directly in Affinity. 
 

Mac mini M1 A2348 | MBP M3 

Windows 11 - AMD Ryzen 9 5900x - 32 GB RAM - Nvidia GTX 1080

LG34WK950U-W, calibrated to DCI-P3 with LG Calibration Studio / Spider 5 | Dell 27“ 4K

iPad Air Gen 5 (2022) A2589

Special interest into procedural texture filter, edit alpha channel, RGB/16 and RGB/32 color formats, stacking, finding root causes for misbehaving files, finding creative solutions for unsolvable tasks, finding bugs in Apps.

I use iPad screenshots and videos even in the Desktop section of the forum when I expect no relevant difference.

 

Posted
16 minutes ago, NotMyFault said:

any

Of course it is! For instance ...

1005630177_repairtools.jpg.4c8b4103d7e208a335a51b52c6d866e2.jpg   🤓😇

• MacBookPro Retina 15" |  macOS 10.14.6  | Eizo 27" | Affinity V1  
• iPad 10.Gen.  |  iOS 18.5.  |  Affinity V2.6

Posted
19 hours ago, NotMyFault said:

anybody aware of a method to remove motion blur in Affinity?

Probably one of the most difficult problems to fix.

One method you can try is using the Emboss filter (Filters > Colours > Emboss) in soft light and try to shift the pixels in a direction opposite to the motion blur.
If you start with a little motion blur, you might be able to see some improvement.

And then there are the deconvolution algorithms.
There is a free software called "Image Analizer" for windows that you can try.
Unfortunately there is not enough information on how to use this "Restoration by deconvolution" filter and requires some processing power to estimate the parameters.

Ive never used Topaz Sharpen Ai, but based on the examples Ive seen so far, Id say its the best method to fix motion blur problems.

  • 2 years later...
Posted
On 5/31/2022 at 11:05 PM, NotMyFault said:

Thanks for all your replies. I don't intend spending extra money or using other apps, just curious if this is possible with any kind of workflow directly in Affinity. 
 

Just had the same question. Then I remembered that there is a sharpening technique using blur. After trying around a bit, it seems that using the motion blur filter for sharpening can be used to undo motion blur in the photo at least a little bit. Instead of using regular blur, use motion blur in the direction and distance of the unwanted motion blur.

 

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.