implement Woodcut image by matlab

2 visualizzazioni (ultimi 30 giorni)
Chan
Chan il 29 Apr 2014
Modificato: Chan il 29 Apr 2014
I would like to woodcut an image by following the instruction of
For the instruction:
"Colorize the result from above and adds the mix amount of transparency"
"Crops the center of woodfile and modulates the sat and hue"
Could anyone tells how can it be complete in matlab?

Risposte (1)

Image Analyst
Image Analyst il 29 Apr 2014
Try rgb2gray() and conv2()
grayImage = double(rgb2gray(rgbImage));
windowSize = 11; % whatever...
blurKernel = ones(windowSize)/windowSize^2;
blurredImage = conv2(grayImage, blurKernel, 'same');
To sharpen, look at my dogfilter demo, attached. So give that a try and see what you can come up with.
  1 Commento
Chan
Chan il 29 Apr 2014
Sorry,I should ask what I don't know instead of what I know,
In the site, it instruct me to
3:Subtracts blurred image from the grayscale sharpened image
4:Add the difference image to the sharpened grayscale image
5:Colorize the result from above and adds the mix amount of transparency
These are the statement I do not understand and I have done the grey and blur image,
Why we have to blur-greyscale and then add the difference back to the grayscale image?
And how can I set the transparency?

Accedi per commentare.

Categorie

Scopri di più su Image Processing Toolbox in Help Center e File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by