SwatPhonLab / UltraTrace

A Free/Open-Source tool for manual annotation of Ultrasound Tongue Imaging data.
GNU General Public License v3.0
10 stars 5 forks source link

load AAA-exported traces #112

Closed jonorthwash closed 4 years ago

jonorthwash commented 4 years ago

Related to #81, AAA-exported splines (traces) should be loadable.

One of the problems with this is that AAA can export splines with arbitrary amounts of metadata. The current example AAA data (Qumuq) includes what is probably close to a bare minimum of metadata to match the splines to frames in the ULT files.

keggsmurph21 commented 4 years ago

What is AAA?

jonorthwash commented 4 years ago

http://www.articulateinstruments.com/aaa/

keggsmurph21 commented 4 years ago

The standard base edition of AAA includes facilities for analysing EPG data. More to follow.

lmao, hopefully it will follow :^)

Thanks, @jonorthwash !

jonorthwash commented 4 years ago

If you click on the AAA tab downloads page, there's a lot more info.

mr-martian commented 4 years ago

I have now, in some sense, gotten data from SPLINES.dat into metadata.json. However, it will take some further experimentation to get the image dimensions right. It's also possible I'm associating them with the wrong frames and I'm wondering if there's a chance it might actually be in polar coordinates.

jonorthwash commented 4 years ago

Two things:

jonorthwash commented 4 years ago

This is how tracing in AAA looks (with Qumuq data). Screenshot from 2019-12-29 12-44-32

jonorthwash commented 4 years ago

The are spaced at every intersect, probably every 1°.

mr-martian commented 4 years ago

@jonorthwash I can't read the screen, could you tell me what file and frame that is?

jonorthwash commented 4 years ago

I'm not sure. You can probably tell the former from the length of the target words in the list and the percent through the list it is, and the latter from the numbers under the image. But it looks like the trace probably isn't right anyway. The point was to show you what it looks like broadly.

I can look at traces and potentially assess what's wrong with them..

mr-martian commented 4 years ago

Screenshot from 2019-12-29 20-12-13 I think I figured it out.

mr-martian commented 4 years ago

It currently imports all traces as red and ignores anything with a set confidence interval below 50.

It also assumes that all columns in SPLINES.dat past the first 3 are either rectangular coordinates or confidence intervals, which might not be entirely true.

jonorthwash commented 4 years ago

It currently imports all traces as red and ignores anything with a set confidence interval below 50.

It seems it is importing them into the different layers though ("Tongue", "Roof"), so recolouring is straightforward.

A few things I see:

jonorthwash commented 4 years ago

It also assumes that all columns in SPLINES.dat past the first 3 are either rectangular coordinates or confidence intervals, which might not be entirely true.

Correct. It should probably be based on substrings "X,Y values" and "Confidence values" in the headers, the former matching 84 columns and the latter matching 42.

jonorthwash commented 4 years ago
  • A black background would be good for the images, instead of white

→ #129

  • The frames in the frames tier aren't lining up with the annotations in the annotation_0 tier.

→ #127

  • The "Read scan line data" should be selected by default if it's the only one, so that ultrasound images are loaded when a file is loaded.

→ #128

It also assumes that all columns in SPLINES.dat past the first 3 are either rectangular coordinates or confidence intervals, which might not be entirely true.

Correct. It should probably be based on substrings "X,Y values" and "Confidence values" in the headers, the former matching 84 columns and the latter matching 42.

If this is what's being done now, then this should be fine. I'm going to close this issue since the basic functionality is working.