作者joey1149 (Joey)
看板MATLAB
标题[讨论] 四元树S = qtdecomp(I,fun)用法
时间Wed Sep 28 16:10:03 2016
根据 Matlab的定义
S = qtdecomp(I, fun) uses the function
fun to determine whether to split a
block. qtdecomp calls fun with all the current blocks of size m-by-m stacked
into an m-by-m-by-k array, where k is the number of m-by-m blocks. fun
returns a logical k-element vector, whose values are 1 if the corresponding
block should be split, and 0 otherwise. (For example, if k(3) is 0, the third
m-by-m block should not be split.) fun must be a function handle.
(1)
想请教大家,关於这个fun
我应该要怎麽去设定,才对得到我想要的结果
我fun的设定打算用:
假如周边的值<2,那就Merge.
(2)
假如我的I不局限於灰阶影像
想用彩色影像当Input,要怎麽修正呢
抱歉打扰了
--
※ 发信站: 批踢踢实业坊(ptt.cc), 来自: 140.112.175.129
※ 文章网址: https://webptt.com/cn.aspx?n=bbs/MATLAB/M.1475050206.A.038.html
1F:推 YoursEver: 印象中限定input为grayscale image.建议靠rgb2ycbcr取 09/29 10:06
2F:→ YoursEver: 出luminance的部分,处理完之後,再加回cbcr,拿ycbcr2rgb 09/29 10:07
3F:→ YoursEver: 转回rgb影像. 09/29 10:07