Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

42 implement individual labels for individual blobs #44

Merged

Conversation

leanderkirkeland
Copy link
Contributor

No description provided.

@leanderkirkeland leanderkirkeland linked an issue Mar 30, 2022 that may be closed by this pull request
Copy link
Member

@gregordecristoforo gregordecristoforo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for looking into this. Let's discuss the changes in tomorrow's supervision meeting.

@@ -53,6 +54,8 @@ def __init__(
label_border: float, optional
defines region of blob as region where density >= label_border * amplitude of Blob
only used if labels = True
label_type: str, optional
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

label_type and labels can be combined to one attribute

@@ -127,6 +131,11 @@ def make_realization(
t_drain=self.t_drain,
)

amp = []
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

make amp a protected member by changing it to _amp

self._labels_field[:, :, _start:_stop][
_single_blob
>= __max_amplitudes * self._label_border
+ self._density[:, :, _start:_stop] * 0.25
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't understand the point of this line, please provide an explanation of the different options of label_type

@gregordecristoforo gregordecristoforo merged commit 095b3a7 into main Apr 13, 2022
@gregordecristoforo gregordecristoforo deleted the 42-implement-individual-labels-for-individual-blobs branch April 13, 2022 15:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

implement individual labels for individual blobs
2 participants