I would like to compute texture statistics on a gray value image, but separately for image regions that are given in a separate label image. Basically the same as
itk::LabelStatisticsImageFilter<RawImage, LabelImage> does, but for texture.
Does that exist? Or is there a typical workflow how to do that in ITK? I could not find a ready-made module that would take a
itk::Statistics::ScalarImageToTextureFeaturesFilter seems useful but takes only a mask, not a label image. Are there other ways to achieve that, without having to iterate over all the labels individually?