Skip to content

HistogramStandardization with masks #444

Answered by fepegar
Linardos asked this question in Q&A
Discussion options

You must be logged in to vote

Hi, @Linardos. The implementation of this transform is a bit clunky, it's one of the first in the library.

Is there a way for me to train histogram standardization using a series of masks that define which pixels are to be used per input?

What you're asking for is not supported at the moment, but it shouldn't be difficult to implement and you're welcome to submit a PR for that. Here's the relevant bit of code:

for image_file_path in tqdm(images_paths):
tensor, _ = read_image(image_file_path)
if masking_function is not None:
mask = masking_function(tensor)

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by fepegar
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants