type4detransform.m
上传用户:l56789
上传日期:2022-02-25
资源大小:2422k
文件大小:0k
源码类别:

图形图像处理

开发平台:

Matlab

  1. %type4detransform.m
  2. %written by: Duncan Po
  3. %Date: June 27/2002
  4. % utility file used in tree2contourlet.m
  5. % usage: [x,y] = type4detransform(z)
  6. % decomposes z into x and y
  7.  
  8. function [x,y] = type4detransform(z)
  9. row = size(z,1);
  10. col = size(z,2);
  11. z = z.';
  12. z = reshape(z, col*4, row/4);
  13. x = z(1:(col*2), :);
  14. y = z((col*2+1):col*4,:); 
  15. x = reshape(x, col, row/2);
  16. y = reshape(y, col, row/2);
  17. x = x.';
  18. y = y.';