How can I efficiently process a numpy array in blocks similar to Matlab's blkproc (blockproc) function

后端 未结 6 1316
我在风中等你
我在风中等你 2020-11-27 02:55

I\'m looking for a good approach for efficiently dividing an image into small regions, processing each region separately, and then re-assembling the results from each proces

6条回答
  •  星月不相逢
    2020-11-27 03:26

    Even later in the game. There is a Swiss Image processing package called Bob available at: https://www.idiap.ch/software/bob/ It has some python commands for blocks, e.g. bob.ip.base.block which appears to do everything the Matlab command 'blockproc' does. I have not tested it.

    There are also interesting commands bob.ip.base.DCTFeatures which incorporates the 'block' capabilities to extract or modify DCT coefficients of an image.

提交回复
热议问题