Image patching for computing Guassian Kernel

조회 수: 2 (최근 30일)
Algorithms Analyst
Algorithms Analyst 2013년 2월 8일
Hi every one
I want to patch the image for Spatial Guassian kernel calculation.with a oatch size 12x12.How can I do it
image=imread('lib.jpg');
patchsize=12;
image=patch(image,patchsize);

채택된 답변

Image Analyst
Image Analyst 2013년 2월 8일
I don't know what you want to do, so I can't give an answer. (Try to explain better - upload a diagram or image if you think that would help explain)
But I do know that you should not use "image" as the name of your variable because you'll destroy the built-in function by that name.
  댓글 수: 17
Algorithms Analyst
Algorithms Analyst 2013년 2월 12일
For more explanation let us suppose that I have a UV image in YUV color space.and I want to compute du=Uk-UJj and dv=Dk-Dj I think that in the paper k and j are two different colors if I am not wrong.Thanks
Algorithms Analyst
Algorithms Analyst 2013년 2월 12일
Can any one help me how to compute color gaussian kernel?

댓글을 달려면 로그인하십시오.

추가 답변 (1개)

Thorsten
Thorsten 2013년 2월 11일
편집: Thorsten 2013년 2월 11일
I = im2double(imread('cameraman.tif'));
Gsk = fspecial('gaussian',[12 12],3);
Idxy = I - imfilter(I, Gsk);
  댓글 수: 1
Algorithms Analyst
Algorithms Analyst 2013년 2월 12일
Image Analyst is right as he described above.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Read, Write, and Modify Image에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by