SciKit-Surgery / scikit-surgery

SciKit-Surgery - Compact Libraries for Surgical Navigation
http://scikit-surgery.github.io/scikit-surgery/
Other
39 stars 11 forks source link

Functions to de-interlace / re-interlace for 3D monitor. #11

Closed thompson318 closed 4 years ago

thompson318 commented 4 years ago

In GitLab by @MattClarkson on Oct 17, 2018, 18:25

For SmartLiver project.

Viking outputs L + R, put into AJA Hi5-3D, and you get 1920x1080 interlaced. Storz outputs on DVI, as 1920x1080 interlaced.

So far on SmartLiver we have output to a 2D screen. We now have a new stack with a 2nd 3D screen. So, it could be a good time to start driving a 3D monitor.

So, in the lab we could achieve this with the Viking screen, either taking an Alienware laptop, and using one output from the HDMI port for the left channel, and one output from the mini-display port for right channel, and putting them into HDMI to SDI converters. Or, else we output interlaced to HDMI port and use HDMI to DVI converter.

Functions required to de-interlace, and re-interlace.

thompson318 commented 4 years ago

In GitLab by @ThomasDowrick on Oct 18, 2018, 09:49

There is a fairly servicable solution here which could be extended to an n-d array https://stackoverflow.com/questions/5347065/interweaving-two-numpy-arrays

I get the feeling that this isn't going to be the fastest way to do it, especially when working in more than 1 dimension. This could be a good candidate for writing a function in C and wrapping it.

thompson318 commented 4 years ago

In GitLab by @MattClarkson on Oct 18, 2018, 10:38

could we do something equivalent to memcpy row by row? Also, make sure we pass in both input and output array to avoid repeatedly re-allocating memory.

like

The main point for raising this issue here, is that we don't yet have other projects to raise issues against. We need to pick some starter projects and test a few things incrementally which will give us a feel for what works.

thompson318 commented 4 years ago

In GitLab by @MattClarkson on Oct 21, 2018, 13:12

Moved to project scikit-surgeryvideo, Issue 1.

thompson318 commented 4 years ago

In GitLab by @MattClarkson on Oct 21, 2018, 13:12

closed

thompson318 commented 4 years ago

In GitLab by @MattClarkson on Nov 13, 2018, 12:52

assigned to @MattClarkson