davidcsterratt / retistruct

Computational reconstruction and transformation of flattened retinae
http://davidcsterratt.github.io/retistruct/
7 stars 7 forks source link

understanding how T.csv is composed #16

Closed briancohn closed 7 years ago

briancohn commented 7 years ago

Hi @davidcsterratt

pasted_image_7_12_17__1_49_am

Is this the way that T.CSV is generated?

generating a final result of: image

briancohn commented 7 years ago

in particular the last tear goes over the last index; is that right?

davidcsterratt commented 7 years ago

The meaning of V0, VB, and VF is:

briancohn commented 7 years ago

thanks!

Functions

permute_tear_vertices <- function(list_of_tear_triplets){
    lapply(list_of_tear_triplets, function(x){
            retistruct::labelTearPoints(annotated_outline_with_tears,x)
            })
}

compose_tear_triplets_dataframe <- function(list_of_tear_triplets) {
         do.call('rbind',permute_tear_vertices(list_of_tear_triplets))
}

Usage Example

list_of_tear_triplets <- list(

            c(23,18,28),
            c(35,31,37),
            c(48,45,51),
            c(64,58,69),
            c(87,78,93),
            c(100,96,105),
            c(109,115,122),
            c(135,131,1)
            )
compose_tear_triplets_dataframe(list_of_tear_triplets)
briancohn commented 7 years ago

retistructgui is not reliable (not your fault I know) so I'm implementing a pipeline for retina markup that does not require it. It will be manual but it's not so bad.

People will just assemble files by writing down the vertex numbers:

pasted_image_7_11_17__2_00_pm
briancohn commented 7 years ago

we are investigating a possible approach with D3/javascript in the future as well

davidcsterratt commented 7 years ago

Interesting. The interface is definitely a weak point. I'd been thinking that some sort of integration with ImageJ/Fiji might be a way forward, but I'm not expert in that package, so I don't know how easy it would be to create an equivalent interface for marking up tears. Also, I think R is going to be better for producing plots, so I don't see the whole system moving to ImageJ.