-
Notifications
You must be signed in to change notification settings - Fork 8
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
EEG TopoPlot Head misalignment #18
Comments
pos1 = pos1 .- mean(pos1)
pos2 = pos2 .- mean(pos2) inbetween, or adjust to a common center if you want. |
Thank you for the help, function eegHeadMatrix(positions, center, radius)
oldCenter = mean(positions)
oldRadius, _ = findmax(x-> norm(x .- oldCenter), positions)
radF = radius/oldRadius
return Makie.Mat4f(radF, 0, 0, 0,
0, radF, 0, 0,
0, 0, 1, 0,
center[1]-oldCenter[1]*radF, center[2]-oldCenter[2]*radF, 0, 1)
end We then use this matrix as model parameter for drawing the head |
Merged
adressed in #57 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello,
we noticed a weird behavior with the head position in a eeg_topoplot when the data points are asymmetrical or only in one corner.
In the image we are drawing two eeg topoplots with points in the top right and bottom left and our expected behavior was to see both heads overlap and contain all points instead of two smaller local heads.
This is the code used to draw them:
Is there some workaround to keep the head location and size independent from the point locations ?
Or would it be possible to either add a way to set a position and size for the head or expose the draw_ear_nose! function ?
Thank you very much and kind regards,
Daniel, Sören, Niklas
The text was updated successfully, but these errors were encountered: