-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
tiff How to enhance UnsharpMask ? #7450
Comments
To enhance something you first need to say what wrong with existing thing. |
Sorry Realizing the need for improvement in one's own expression Completed 16 bit gray chart tiff Image.open How to load ? ImageEnhance.Sharpness
ImageEnhance.UnsharpMask image enhancement |
from PIL import Image
im = Image.open('1.tiff')
im.load() but I expect there are many people who use Pillow without ever thinking about loading images, so I'd be surprised if that's what you meant. If you're interested in just opening the image, from PIL import Image
im = Image.open('1.tiff') should suffice. If that doesn't work for you, please let us know what version of Pillow you're using.
from PIL import Image, ImageEnhance
im = Image.open('1.tiff')
enh = ImageEnhance.Sharpness(im)
enh.enhance(1.9).save('out.tiff') but received an error - That is the same as #7397. In that issue, the following workaround is suggested. from PIL import Image, ImageEnhance
im = Image.open("1.tiff").point(lambda x: x / 256).convert("L")
enh = ImageEnhance.Sharpness(im)
enh.enhance(1.9).save("out.tiff") Pillow doesn't have an from PIL import Image, ImageFilter
im = Image.open("1.tiff").point(lambda x: x / 256).convert("L")
im.filter(ImageFilter.UnsharpMask).save("out.tiff") |
I suspect you primarily want a way to make 1.tiff look like the image on the right of your post though? Could you provide a description of how it was created? |
If you're asking how to provide arguments to from PIL import Image, ImageFilter
im = Image.open("1.tiff").point(lambda x: x / 256).convert("L")
im.filter(ImageFilter.UnsharpMask(3, 400, 0)).save("out.tiff") |
Thank you very much for your help This method is not suitable I will try to adjust myself Because I want to see surface defects Thank you again for your selfless help |
1.zip
16 bit gray chart tiff
How to load ?
image enhancement
How to achieve the desired outcome ?
The text was updated successfully, but these errors were encountered: