Merge multiple multi channel image

asked 2018-07-11 06:47:42 -0500

mab85 gravatar image

I have matrix of [14965,16,32,256] where 14965 is number of images, 16 height, 32 width and 256 is number of channels. How can i merge these channels to one channel?

edit retag flag offensive close merge delete

Comments

maybe you can explain, what is inside your 256 channels ?

where does this data come from ? (quite unusual format)

berak gravatar imageberak ( 2018-07-11 07:40:41 -0500 )edit

also note, that it is [N,C,H,W] with opencv's dnn, so, what exactly are you using there ?

berak gravatar imageberak ( 2018-07-12 05:05:58 -0500 )edit

This matrix extracted from one DNA sequence dataset by convert DNA sequence to 2D image using Hilbert curve of degree 5 and 4-mers

mab85 gravatar imagemab85 ( 2018-07-13 02:36:06 -0500 )edit

ah, ok. wrong guess here, then.

how do you expect to "merge" 256 channels into one ? is there a formula ?

berak gravatar imageberak ( 2018-07-13 03:28:00 -0500 )edit

something like this link text but in python

mab85 gravatar imagemab85 ( 2018-07-13 03:54:10 -0500 )edit