Ch1.6: IN-place-ly rotate a pic(NxN matrix) by 90 digree in Verilog(CPP)

来源:互联网 发布:php substr函数 编辑:程序博客网 时间:2024/05/17 04:44

这个有点像DSP FPGA Chang Choo的题目,一般是放大插值,DFT,IIR之类的Verilog题目。

题目在这:Given an image represented by an NxN matrix, where each pixel in the image is 4 bytes, write a method to rotate the image by 90 degrees. Can you do this in place?


注意,这里的循环基和index需要留心注意。

关于index的选择,可以参考这个草图:


0 0