implement Woodcut image by matlab

2 次查看(过去 30 天)
Chan
Chan 2014-4-29
编辑: Chan 2014-4-29
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?

回答(1 个)

Image Analyst
Image Analyst 2014-4-29
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 个评论
Chan
Chan 2014-4-29
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?

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 Image Processing Toolbox 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by