最近在读一篇关于图像处理的文章,it states如下:
Let Y be an image of size N1×N2, where N1N2 = N, and let Z be a corrupted version of Y, which may be noisy. Also, let z and y be the column stacked versions of Z and Y, respectively.
任何人都可以解释一下给定图像的列堆叠版本在概念上和数学上是什么吗?
提前致谢。
最佳答案
矩阵的列堆叠版本意味着它是一个列向量,它是通过将该矩阵的列一一连接而创建的。在 MATLAB 中,这可以通过 colon
简单地实现运算符:
Y_stacked = Y(:); %// Stacked (or "columnized") Y
Z_stacked = Z(:); %// Stacked (or "columnized") Z
由于堆叠数组包含与原始矩阵相同数量的元素,因此其长度应为 N = N1 N2,其中 N1×N2 是原始矩阵的维度。
这相当于 vec
数学的转变。
关于matlab - "column stacked version of an image"是什么意思?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17694089/