Skip to content

A small piece of code to find polar coordinates of light stimuli inside the "Pediatric Perimeter" from xyz coordinates derived from Solidworks file

Notifications You must be signed in to change notification settings

buildfreak93/pediperiTesting

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Pedi Peri-LED angle calculator (manual 3d reconstruction)

A simple piece of code I have written to find angles, that LED's subtent from the center of the dome.

About

Perimetry plays an important role in diagnosing visual path way disorders. A variety of perimeters are available for clinical testing in adults, however no such device exists for infants.

For this a hemispherical dome (embedded with LEDs) was constructed with steel rods.The dome was covered with a black cloth. Twenty four meridians separated by 15 degrees formed the skeleton of the dome. An infrared camera was placed at the apex of the dome to capture the eye or head movement of the children during the test.

This project was done by me as part of my internship at LV Prasad Eye Institute in Srujana Center for Innovation

Read more here

pedi peri

Due to some manufacturing practices the are some minor defects in the LED's positioning. To exactly know where baby is gazing we need to map this LED's posotion with respect to camera's position.

To do this. each and meridian was sketched on to a sheet and later we scanned the sheet to get a soft copy.

sandeep

Usind solidworks a 3D model has been re-constructed from the soft copy by doing a 3d sktech.

eee

Solidworks gives X Y Z coordinates of all points from the sketch on a CSV file. By using this I have to find the angles that each LED subtent at the center to know the exact posotion where baby is looking.

How the code works

I used python to execute the program.

  • The camera position was taken as the point of eferenceand made it orgin by subtracting it's values from all the X Y Z values.
  • Then the code first reads the data file.
  • Columns are assigned with names.
  • Here basic pythogaros formual is implemented to all values to find the angles.
  • The values are then writen to a new CSV file.

This might not be the best method to do this. But this was just a start for me into programming.

About

A small piece of code to find polar coordinates of light stimuli inside the "Pediatric Perimeter" from xyz coordinates derived from Solidworks file

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages