Meaning of lengh in fspecial('​motion',le​ngth,angle​) ?

조회 수: 8 (최근 30일)
dao
dao 2016년 11월 18일
댓글: KSSV 2016년 11월 21일
I am making program relating with motion blur. I read from guidance matlab: "length" is the length of blur in the picture but it doesn't say about the unit of this parameter. is it cm, mm or pixel ?
Please help me. Thank a lot

답변 (1개)

KSSV
KSSV 2016년 11월 18일
It is mentioned in the document, Read this:
h = fspecial('motion', len, theta) returns a filter to approximate, once convolved with an image, the linear motion of a camera by len pixels, with an angle of theta degrees in a counterclockwise direction. The filter becomes a vector for horizontal and vertical motions. The default len is 9 and the default theta is 0, which corresponds to a horizontal motion of nine pixels.
length should is in pixels.
  댓글 수: 2
dao
dao 2016년 11월 21일
Thank for your answer. In my small experiment, I create a blur picture by camera and compare it with a blur picture created by matlab. the problem is I cannot de-blur for captured picture by using deconvolution (deconv2)
KSSV
KSSV 2016년 11월 21일
My answer was specific to your question. You may open a new question, so that other experts can answer you. Good luck.

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

카테고리

Help CenterFile Exchange에서 Startup and Shutdown에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by