1 | initial version |
x < imageWork.rows
makes it only worse. if you ever see yourself writing code like that again -- slap yourself. hard. as often as nessecary.Mat kmeansData = imageWork.reshape(1, imageWork.total()); // 1 channel, 3 cols, H*W rows
2 | No.2 Revision |
x < imageWork.rows
makes it only Mat kmeansData = imageWork.reshape(1, imageWork.total()); // 1 channel, 3 cols, H*W rows