Skip to content

compress_duplicates

compress_duplicates(i, j, oi, oj, tmp)

Categories: Sparse, Indexing

Description

removes duplicate i,j labels. On entry then i and j are set as the labels from two images. They are sorted and on exit i,j hold the unique pairs and oi holds the count for the number of overlaps. oj and tmp are temporaries.

Parameters

Name Description
i I/O int32 col 0.
j I/O int32 col 1.
oi Output counts.
oj Temp.
tmp Temp.

Constraints

  • ( i.format == 'i' or i.format == 'l' )
  • ( j.format == 'i' or j.format == 'l' )
  • j.n == i.n
  • ( oi.format == 'i' or oi.format == 'l' )
  • oi.n == i.n
  • ( oj.format == 'i' or oj.format == 'l' )
  • oj.n == i.n
  • ( tmp.format == 'i' or tmp.format == 'l' )

Overloads

C function Condition
compress_duplicates always

Built from commit 7ba8255fa8d680e1a1df79e67aee3873247ce69c (v0.4.5)