Issues when using custom python filters

26 views
Skip to first unread message

Anirudh Prakash

unread,
Jun 25, 2025, 9:21:06 AMJun 25
to dream3d-users
Hello everyone,

I was recently trying to code my own filter in python to group grains into clusters because the segmentation filters did not do a good job in grouping and there were some individual grains left after the filter performed the grouping.

My objective was to group grains randomly such that each group consisted of at least two grains. For this I built a custom python filter. After grouping the grains, I added these groups- ParentIds into CellFeatureData. When I checked the items inside CellFeatureData on python, ParentIds was showing up but when I read the same file in dream3d, I could not see ParentIds anywhere in the data structure.

Could someone please explain to my why this is happening. A viable solution can also be an alternative filter which performs the same task which I want to with my filter.

Screenshot 2025-06-25 at 3.19.07 PM.png
Screenshot 2025-06-25 at 3.19.28 PM.png

I have attached the relevant photographs. Would greatly appreciate some assistance with regard to this matter.

Thanks!
Anirudh

Michael Jackson

unread,
Jun 25, 2025, 3:27:33 PMJun 25
to Anirudh Prakash, dream3d-users
Hello Anirudh, 
     Which version of DREAM3D are you targeting? Are you writing your filter in pure python and then adding your new data to the .dreamd file by hand? That would possibly explain the issue you are seeing?
--
Mike Jackson                    mike.j...@bluequartz.net
BlueQuartz Software         www.bluequartz.net
President/Owner               Dayton, Ohio
Principal DREAM.3D Developer


--
You received this message because you are subscribed to the Google Groups "dream3d-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dream3d-user...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/dream3d-users/4bfd1cc7-275d-416c-9677-4edad83a36dcn%40googlegroups.com.




Reply all
Reply to author
Forward
0 new messages