Skip to content

[WIP] Rewrite MATLAB import functions with readstruct()#344

Closed
Jerry1144 wants to merge 2 commits into
trackmate-sc:masterfrom
Jerry1144:rewrite-in-readstruct
Closed

[WIP] Rewrite MATLAB import functions with readstruct()#344
Jerry1144 wants to merge 2 commits into
trackmate-sc:masterfrom
Jerry1144:rewrite-in-readstruct

Conversation

@Jerry1144

Copy link
Copy Markdown

One path to #343, rewriting trackmateSpots.m with readstruct() function. Shifting to MATLAB's own capabilities helps alleviate Java heap size problems.

Specific to this path:

  1. readstruct reads everything, so calling out to trackmateFeatureDeclarations for parsing FeatureDeclarations feels wrong.
  2. struct field names may have been changed (according to MATLAB identifiers rule). There's additional logic to guess the original XML Attribute name. May consider moving to a separate function for code reuse.

Future plan is to have the separate trackmateFeatureDeclarations.m accept a structure as a secret input, to avoid loading the XML again when the calling function has already done it.

  • trackmateSpots.m
  • trackmateFeatureDeclarations.m
  • trackmateEdges.m
  • trackmateGraph.m
  • trackmateImageCalibration.m

Rewritten trackmateSpots.m with `readstruct()` function.

Shifting to MATLAB's own capabilities helps alleviate heap size problems.
@tinevez

tinevez commented Jun 2, 2026

Copy link
Copy Markdown
Member

Cool! Ping me when you are ready.

@Jerry1144

Copy link
Copy Markdown
Author

Superseded by #350. Closing.

@Jerry1144 Jerry1144 closed this Jun 19, 2026
@Jerry1144 Jerry1144 deleted the rewrite-in-readstruct branch June 19, 2026 06:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants