Should ScalarImageToCooccurrenceMatrixFilter have a template parameter for the mask image type?

Currently ScalarImageToCooccurrenceMatrixFilter assumes that the mask image would be the same type as the gray value image. This is not ideal, and can be even problematic when working with floating-point types.

I think its possible to extend ScalarImageToCooccurrenceMatrixFilter to add a template parameter for the mask image type. But would such a PR be acceptable?

1 Like

A corresponding PR is at ENH: Added template parameter for texture mask type by emmenlau · Pull Request #2862 · InsightSoftwareConsortium/ITK · GitHub

2 Likes

Such PRs are welcome. Yours looks mostly good.