Forum

Contour thresholded and separated by ID


#1

Hi all
i’ve just lost a bit in logic
How to delete unnecessary XYspreads of small contours from common XYspreads?
cheers, dimi

ContourThresholded&SeparatedByID.v4p (50.4 kB)


#2

It seems like I could get the tresholded output of spreads, but somehow the sorting is going wrong.
could someone check two patches?
patch A is correct, but without Threshold filtering
patch B with Threshold, but not correctly working

ContourThresholded&SeparatedByID_v2a.v4p (53.6 kB)
ContourThresholded&SeparatedByID_v2b.v4p (62.3 kB)


#3

Hi DIMIX
I made an example for you , hope is what you need.

FilterBlobBySize.rar (12.9 kB)


#4

ahh i just realised that maybe you only want the surround contours themselves so i made another version where you can select by binsize contours count.

cheers ;D

FilterBlobBySize_&Binsize.rar (19.0 kB)


#5

hey colorsound,
thanks for your nice and clear patches.
they all right fixing filtering by area and bin size.
That’s enough if you need to apply the same attributes to all IDs, or dealing with generated dynamic spread , which you can “marry” with dynamic spread of contour data (like quad colors in helpfile). My intentions were

  1. be able to apply fixed spread of attributes to filtered IDs, buffered with kind of fixed animated slots (stalloning?)(pls see FilterBlobBySize_&Binsize_v1.zip)
  2. get XYcontour coordinate of single ID also buffered/ free of jumps
    (pls see ContourFiltered&Separeted by ID v 3.zip)

ContourFiltered&Separeted by ID v 3.zip (15.3 kB)
FilterBlobBySize_&Binsize_v1.zip (30.6 kB)


#6

hi i see ,this is different question , btw blobs are not only filtered they are ordered to avoid the jumps .anyway you can already apply things to the id,s ,but you can get much more to achive your goal with different ways staticspread or orderspread in combination with what you already have, here some ways : this https://discourse.vvvv.org/t/9000 and or this ordereddictionary-(id)
good luck ;D


#7

Hello DIMIX

here another example to get what i think you were trying in your patches,it was already in the patch i sent you but maybe not that obvious to get the right indexes so this should give you more clarification and ideas to get you going.
cu :D

FilterBlob&SelectIndex.rar (28.3 kB)


#8

hey man, thanks a lot! that’s almost perfect for my needs! just one small thing that fixed spread of attributes should be apply to filtered spread of contours. in your case without skipping letter B. have headache today > will try to go into tomorrow. thanks you very much again. dimi


#9

Nice- i see now you built-in two way for filtering: BinSize and AreaSize.
ATM looks like ContoursXY+LineBounds are filtered by Binsize and BlobCenterText are filtered by AreaSize.
i think to make it better there are two things to fix:

  1. for simple assignment of different attributes every slice of spread of filtered IDs should get appropriate slice of fixed spread of Attributes
  2. the access to values of single ID should get more buffer (for the case of disappearing)
    see patch attached.
    thanks and cheers, dimi

FilterBlob&SelectIndex_1.zip (49.5 kB)


#10

Hi DiMiX

i’d like to take a look at that final solution of yours. would you mind uploading it again?

thx


#11

second to that!


#12

I have to check what exactly was it.
meanwhile check velcrome contribution, maybe it helps

track-(vector3d)


#13

I’ve ended up with something like that

ContourTracker.zip (71.4 kB)


#14

thx DiMiX!