1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
package detection; component ObjectDetector4{ ports in Q(0:255)^{50, 50} red[4], in Q(0:255)^{50, 50} green[4], in Q(0:255)^{50, 50} blue[4], out Q(-oo:oo)^{2500, 1} clusters[4]; instance
SpectralClusterer
<50, 2500, 4, 1> spectralClusterer[4]; connect red[:] -> spectralClusterer[:].img[1]; connect green[:] -> spectralClusterer[:].img[2]; connect blue[:] -> spectralClusterer[:].img[3]; connect spectralClusterer[:].cluster -> cluster[:]; } |