You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To segment an image, I first use a scan kernel to get a list of contour pixels, which are not ordered along the contour but follow the scan logic (from top left to bottom right, row-wise). Each entry of this list is a struct with a field currentand a field next, which are the linear index of the pixel in the image and the linear index of the next pixel along the contour. E.g.
The only solution I found is to do it sequentially in a single work item, which is awfully slow (as expected, but not that much): 40 ms for 10,000 pixels. What better?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
To segment an image, I first use a scan kernel to get a list of contour pixels, which are not ordered along the contour but follow the scan logic (from top left to bottom right, row-wise). Each entry of this list is a
struct
with a fieldcurrent
and a fieldnext
, which are the linear index of the pixel in the image and the linear index of the next pixel along the contour. E.g.What would be the most efficient way to order that list, to make entries follow the contour in the right order? E.g.
The only solution I found is to do it sequentially in a single work item, which is awfully slow (as expected, but not that much): 40 ms for 10,000 pixels. What better?
Beta Was this translation helpful? Give feedback.
All reactions