Remove lens smear

Corel Paint Shop Pro

Moderator: Kathy_9

Post Reply
rk225
Posts: 18
Joined: Tue Dec 25, 2012 4:08 am
operating_system: Windows 7 Professional
System_Drive: C
32bit or 64bit: 64 Bit

Remove lens smear

Post by rk225 »

By mistake my lens got smeared, so is there a way to remove lens smear that has appeared in the photos. I am using PSP X7.
Jean-Luc
Advisor
Posts: 2177
Joined: Sat Oct 22, 2011 10:50 pm
operating_system: Windows 10
System_Drive: C
32bit or 64bit: 64 Bit
motherboard: ASUS Computer N751J
processor: Intel i7_4710 HQ 2_50GHz
ram: 16GB
Video Card: NVIDIA GeForce GTX 850M
sound_card: NVIDIA High Definition Audio
Hard_Drive_Capacity: 2 Tb
Monitor/Display Make & Model: NVIDIA GeForce GTX 850M
Corel programs: PSP X7, X9, 2018 to 2023
Location: Belgium (French speaking)
Contact:

Re: Remove lens smear

Post by Jean-Luc »

Difficult to give a solution without to SEE the defect.
Could you post the photo or part of it?
I proposed a solution, months ago, for a similar problem (finger blurring the lens), on the Corel Facebook page.
THE PAINTSHOP PRO COOKBOOK - GENEALOGY WITH PAINTSHOP PRO
Installed PSP Ultimate: X7, X9, 2018, 2019, 2020, 2021, 2022, 2023
rk225
Posts: 18
Joined: Tue Dec 25, 2012 4:08 am
operating_system: Windows 7 Professional
System_Drive: C
32bit or 64bit: 64 Bit

Re: Remove lens smear

Post by rk225 »

I am not able to upload the file. It keeps saying file is too big. First time when I uploaded the discussion board said only file less than 2 MB can be uploaded. I reduced it to 1.36 MB, and then it says max size should be 500 KB. Is there a way to upload the file? Do you have the steps that one can follow to remove smear? Also, can smear be removed from raw format images?
Thanks.
User avatar
flagpole
Posts: 535
Joined: Wed Sep 14, 2011 10:12 am
operating_system: Windows 10
System_Drive: C
32bit or 64bit: 64 Bit
motherboard: Gigabyte B450 AORUS ELITE DDR4 USB 3.1 RGB
processor: Ryzen 2600
ram: 16GB
Video Card: RTX 2060
sound_card: on board
Hard_Drive_Capacity: 6.5TB
Monitor/Display Make & Model: Iiyama 27"
Location: UK
Contact:

Re: Remove lens smear

Post by flagpole »

Google drive
Mega
One drive
Drop box

And a million other places will let you share files of any size you like.

There is no remove smear button. It needs to be done using a combination of techniques and you need to let us see the original file.
Jean-Luc
Advisor
Posts: 2177
Joined: Sat Oct 22, 2011 10:50 pm
operating_system: Windows 10
System_Drive: C
32bit or 64bit: 64 Bit
motherboard: ASUS Computer N751J
processor: Intel i7_4710 HQ 2_50GHz
ram: 16GB
Video Card: NVIDIA GeForce GTX 850M
sound_card: NVIDIA High Definition Audio
Hard_Drive_Capacity: 2 Tb
Monitor/Display Make & Model: NVIDIA GeForce GTX 850M
Corel programs: PSP X7, X9, 2018 to 2023
Location: Belgium (French speaking)
Contact:

Re: Remove lens smear

Post by Jean-Luc »

rk225 wrote:I am not able to upload the file. It keeps saying file is too big. First time when I uploaded the discussion board said only file less than 2 MB can be uploaded. I reduced it to 1.36 MB, and then it says max size should be 500 KB. Is there a way to upload the file? Do you have the steps that one can follow to remove smear? Also, can smear be removed from raw format images?
Thanks.
You may crop the image. We don't need to see the complete image. A cropped area showing the defect is a workaround.
THE PAINTSHOP PRO COOKBOOK - GENEALOGY WITH PAINTSHOP PRO
Installed PSP Ultimate: X7, X9, 2018, 2019, 2020, 2021, 2022, 2023
rk225
Posts: 18
Joined: Tue Dec 25, 2012 4:08 am
operating_system: Windows 7 Professional
System_Drive: C
32bit or 64bit: 64 Bit

Re: Remove lens smear

Post by rk225 »

Ok folks here is the link to the files in dropbox https://www.dropbox.com/sh/du9mwwt4kj5l ... 2dbqa?dl=0. I uploaded both the raw and jpg files.
brucet
Posts: 895
Joined: Thu Sep 22, 2011 10:37 am
operating_system: Windows 8.1
System_Drive: C
32bit or 64bit: 64 Bit
ram: 8GB
Location: Australia

Re: Remove lens smear

Post by brucet »

The issue with 'reconstructing' the smear will be lack of data. Any detail under/behind the smear will be missing. So how does software reconstruct it if it can't see what is there? I fear all you can do is 'invent' some detail to make look a bit less obvious. Clone in some detail and maybe use the sharpen brush to get that area a bit of punch.

regards
User avatar
flagpole
Posts: 535
Joined: Wed Sep 14, 2011 10:12 am
operating_system: Windows 10
System_Drive: C
32bit or 64bit: 64 Bit
motherboard: Gigabyte B450 AORUS ELITE DDR4 USB 3.1 RGB
processor: Ryzen 2600
ram: 16GB
Video Card: RTX 2060
sound_card: on board
Hard_Drive_Capacity: 6.5TB
Monitor/Display Make & Model: Iiyama 27"
Location: UK
Contact:

Re: Remove lens smear

Post by flagpole »

Ok so this is very rough literally 30 seconds whilst i'm doing something else.

But that doesn't actually look like a smear to me, it looks like condensation or other spunk on the lens.

Either way the effect of these things tends to be to blur the picture and the contrast. So as a rough guide how to fix it...
Select the areas with the problem. Feather the selection to like 100-200px.
Increase the contrast in the selection. Until it looks about right.
Increase the sharpness using the unsharp mask.
bob's your uncle.

https://1drv.ms/i/s!ApL9dCBd8XDuiQGH-GfGlM_DWV6D
A long way from perfect, but you get the idea.
rk225
Posts: 18
Joined: Tue Dec 25, 2012 4:08 am
operating_system: Windows 7 Professional
System_Drive: C
32bit or 64bit: 64 Bit

Re: Remove lens smear

Post by rk225 »

The lens was fine after I cleaned the smear. Anyway thanks for the effort. It seems to be too cumbersome. I may have to ditch the smeared photos I think.
Jean-Luc
Advisor
Posts: 2177
Joined: Sat Oct 22, 2011 10:50 pm
operating_system: Windows 10
System_Drive: C
32bit or 64bit: 64 Bit
motherboard: ASUS Computer N751J
processor: Intel i7_4710 HQ 2_50GHz
ram: 16GB
Video Card: NVIDIA GeForce GTX 850M
sound_card: NVIDIA High Definition Audio
Hard_Drive_Capacity: 2 Tb
Monitor/Display Make & Model: NVIDIA GeForce GTX 850M
Corel programs: PSP X7, X9, 2018 to 2023
Location: Belgium (French speaking)
Contact:

Re: Remove lens smear

Post by Jean-Luc »

My try to correct :
http://ovh.to/jk8QBZ
(sorry, right area is too much retouched)

The defect is local and is not equally distributed. The correction is to be made manually. I duplicated the image and applied the corrections (contrast enhancement, white balance, vibration) on the bottom layer. I removed part of the top layer with the Erase tool.
THE PAINTSHOP PRO COOKBOOK - GENEALOGY WITH PAINTSHOP PRO
Installed PSP Ultimate: X7, X9, 2018, 2019, 2020, 2021, 2022, 2023
photodrawken
Posts: 684
Joined: Wed Sep 26, 2012 8:40 am
operating_system: Windows 10
System_Drive: C
32bit or 64bit: 64 Bit
ram: 16Gb
Hard_Drive_Capacity: 324Gb
Location: USA

Re: Remove lens smear

Post by photodrawken »

I think I've come up with an interesting interpretation:
IMG_5666 b corrected.jpg
As I tweaked and adjusted and tweaked some more, I became fascinated by the dappled lighting on the middle ground hills; the play of haze, clouds and light revealing and concealing parts of the scene; and the fields, trees and buildings tumbling down the hills.

So, in addition to correcting for the grease smear on the lens, I made those interplays the raison d'etre of the image. I also tried for a nice contrast between the greys and the sunlit line of trees in the foreground.

I have no idea why the OP took this photo, but there's some intriguing stuff to work with in it....
Ken
Yes, I think it can be eeeeeasily done...
Just take everything out on Highway 61.
rk225
Posts: 18
Joined: Tue Dec 25, 2012 4:08 am
operating_system: Windows 7 Professional
System_Drive: C
32bit or 64bit: 64 Bit

Re: Remove lens smear

Post by rk225 »

The photo is of Hawaii volcanic mountain range as viewed from Kailua Kona, Big Island, Hawaii. Unfortunately lens smear spoiled many pictures. You guys have done tremendous job fixing it. Thanks.
Post Reply