Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ENH: Update DICOM Database with URL Support and Tag Cache Optimization
This generalizes the ctkDICOMDatabase code to ease hard-coded restrictions about DICOM files always being on disk. Now the schema includes a `URL` field of the SQLite database so certain file-specific operations are only performed on filePaths while URL are handled independently. Entries in the `Images` table of the database may now have either a `URL` or a `fileName` or both and new accessors are provided to get `URL`s at the series and instance level. Schema version is updated from version `0.7.0` to `0.8.0`. Also this contains a fix to the `ctkDICOMTagCache` so that tags are always stored internally as uppercase hex, so a string like "0010,000d" will always be turned into "0010,000D" for storage in the database. Both forms can be used to query tags. This avoids the situation where some cache entries were duplicated because different code used either upper or lower case to refer to the same tag. Using only upper case should improve storage use and improve performance by avoiding unneeded cache misses. Co-authored-by: Andras Lasso <lasso@queensu.ca> Co-authored-by: Davide Punzo <punzodavide@hotmail.it> Co-authored-by: Jean-Christophe Fillion-Robin <jchris.fillionr@kitware.com>
- Loading branch information