Can I do max filter on a sub_blocks with matlab -


For example, I have a 4x4 matrix, I want to divide it into a maximum of 2x2 sub_regions. And maximize the sub-limit

  1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16 \ 6/6, 6, 8, 8, 6, 8, 8, 14, 14, 16, 16, 14, 14, 16, 16    

Do you need this suite?

(Suppose your data is in the matrix, which is called M )

  & gt; & Gt; Cellphone (@ (x) max (x), matcelcel (m, [2 2], [2 2])) ans = 6 8 14 16   

edit Do:

You may also be able to get your desired output:

  & gt; & Gt; Cron (selphon (@ (x) max (x), matcelcells (m, [2 2], [2 2]), ones (2)) a = 6 6 8 8 6 6 8 8 14 14 14 16 16 14 14 16 16    

Comments

Popular posts from this blog

Java - Error: no suitable method found for add(int, java.lang.String) -

java - JPA TypedQuery: Parameter value element did not match expected type -

c++ - static template member variable has internal linkage but is not defined -