-
Notifications
You must be signed in to change notification settings - Fork 0
Image retrieve functions #49
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
base: main
Are you sure you want to change the base?
Conversation
geqie/cli.py
Outdated
@@ -52,6 +52,13 @@ def _get_encoding_functions(params: Dict): | |||
return EncodingFunctions(init_function, data_function, map_function) | |||
|
|||
|
|||
def _get_retrive_functions(params: Dict): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
def _get_retrive_functions(params: Dict): | |
def _get_retrive_function(params: Dict): |
geqie/cli.py
Outdated
@@ -89,6 +96,15 @@ def wrapper(*args, **kwargs): | |||
return wrapper | |||
|
|||
|
|||
def retrieving_options(func): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
def retrieving_options(func): | |
def retrive_options(func): |
geqie/cli.py
Outdated
# print(f'Params: {params}') | ||
print(f'Params.get("result"): {params.get("result")}') | ||
|
||
retrieve_fun = _get_retrive_functions(params) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
retrieve_fun = _get_retrive_functions(params) | |
retrieve_function = _get_retrive_function(params) |
geqie/cli.py
Outdated
@retrieving_options | ||
def retrieve(**params): | ||
print('Retrieve CLI') | ||
# print(f'Params: {params}') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can we remove the unnecessary comments?
geqie/encodings/frqi/retrieve.py
Outdated
|
||
reconstructed_image = ones / total | ||
try: | ||
reconstructed_image = np.where(total > 0, ones / total, 0) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we need this try-except? I think we should just pad with zeros where NaN occurs, but I'm not sure how this behaves
Image retrival code, for FRQI first.