-
Notifications
You must be signed in to change notification settings - Fork 75
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
Retina broken log polar WIP #721
base: retina_encoder
Are you sure you want to change the base?
Conversation
depends on params sparsityXXX > 0
instead of doing it manually
replace self.output_diameter with self.retina.getOutputSize() replace self.retina_diameter with self.retina.getInputSize()
require same dims for all images make new_image_() a static method, used internally by compute()
TODO avoid that, work with rectangles?
processing.
This reverts commit 40dd4b30781c96f8b5bae9545f258c73e75592ce.
This reverts commit e46d5f3.
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.
CC @ctrl-z-9000-times please have a look at these, and esp the issues in this PR's description, thank you.
self.resolution_factor = 3 | ||
self.retina_diameter = int(self.resolution_factor * output_diameter) | ||
# Argument fovea_scale ... represents "zoom" aka distance from the object/image. | ||
self.fovea_scale = 0.177 |
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.
fovea_scale vs self.scale?
self.scale = 1.0 | ||
|
||
|
||
def new_image_(image): |
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.
now static, rename to read_image?
center = self.retina_diameter / 2 | ||
M = self.retina_diameter * self.fovea_scale | ||
center = self.retina.getInputSize()[0] / 2 | ||
M = self.retina.getInputSize()[0] * self.scale | ||
if self.parvo_enc is not None: | ||
parvo = cv2.logPolar(parvo, |
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.
should we apply the logPolar only in the Channel encoder? Bcs that one expects its data in that form.
WIP PR, I made some cleanups,improvements to the PR, but broke scaling/logpolar.
What I'd like to do is use Retina's
useLogSampling
, but imho that unfortunatelyOur current approach is neither ideal,
we have to crop to ROI
I'd like to re-center the image to given center (& fov. diameter)
What is the difference for
self.scale
andself.scale_fovea
?Follow up to #691