Lines Matching refs:Edges
129 enum Edges { UP = 1, DOWN = 2, LEFT = 4, RIGHT = 8, EMPTY = 0xF0 };
208 void computeEdges(const PtrStepSzb& image, PtrStepSzb edges, const float4& lo, const float4& hi, cudaStream_t stream)
216 computeConnectivity<T, Int_t><<<grid, block, 0, stream>>>(static_cast<const PtrStepSz<T> >(image), edges, inInt);
223 template void computeEdges<uchar> (const PtrStepSzb& image, PtrStepSzb edges, const float4& lo, const float4& hi, cudaStream_t stream);
224 template void computeEdges<uchar3> (const PtrStepSzb& image, PtrStepSzb edges, const float4& lo, const float4& hi, cudaStream_t stream);
225 template void computeEdges<uchar4> (const PtrStepSzb& image, PtrStepSzb edges, const float4& lo, const float4& hi, cudaStream_t stream);
226 template void computeEdges<ushort> (const PtrStepSzb& image, PtrStepSzb edges, const float4& lo, const float4& hi, cudaStream_t stream);
227 template void computeEdges<ushort3>(const PtrStepSzb& image, PtrStepSzb edges, const float4& lo, const float4& hi, cudaStream_t stream);
228 template void computeEdges<ushort4>(const PtrStepSzb& image, PtrStepSzb edges, const float4& lo, const float4& hi, cudaStream_t stream);
229 template void computeEdges<int> (const PtrStepSzb& image, PtrStepSzb edges, const float4& lo, const float4& hi, cudaStream_t stream);
230 template void computeEdges<float> (const PtrStepSzb& image, PtrStepSzb edges, const float4& lo, const float4& hi, cudaStream_t stream);
232 __global__ void lableTiles(const PtrStepSzb edges, PtrStepSzi comps)
237 if (x >= edges.cols || y >= edges.rows) return;
240 int bounds = ((y + TPB_Y) < edges.rows);
255 component c = edges(bounds * (y + CTA_SIZE_Y * i), x + CTA_SIZE_X * j);
360 label = yloc * edges.cols + xloc;
400 const PtrStepSzb edges, PtrStepSzi comps, const int yIncomplete, int xIncomplete)
412 tileSizeY = (edges.rows % tileSizeY);
425 tileSizeX = (edges.cols % tileSizeX);
456 component e = edges( x, y);
475 component e = edges(x, y);
488 __global__ void flatten(const PtrStepSzb edges, PtrStepSzi comps)
499 void labelComponents(const PtrStepSzb& edges, PtrStepSzi comps, int flags, cudaStream_t stream)
503 dim3 grid(divUp(edges.cols, TILE_COLS), divUp(edges.rows, TILE_ROWS));
505 lableTiles<<<grid, block, 0, stream>>>(edges, comps);
515 crossMerge<<<mergeGrid, mergeBlock, 0, stream>>>(2, 2, tileSizeY, tileSizeX, edges, comps, (int)ceilf(grid.y / 2.f) - grid.y / 2, (int)ceilf(grid.x / 2.f) - grid.x / 2);
523 grid.x = divUp(edges.cols, block.x);
524 grid.y = divUp(edges.rows, block.y);
525 flatten<<<grid, block, 0, stream>>>(edges, comps);