Download Segment - Technical Manual

Transcript
CHAPTER 15. UNIT IMPLEMENTATION
tags = get tags()
EReturns a tags struct with tag names as fieldnames and tag as value.
tag = name to tag(name)
OConvert a tag name to a tag.
outdata = parse chunk(data)
NInverse of create chunk.
varargout = parse chunk va(data)
Avarargout shortcut to parse chunk.
stri = secondtostring(t)
Nonverts from seconds to a timestring with hhmmss.sss.
r = serialize( data )
ESerializes a matlab variable. Return a [1xn] uint8 array.
r = serialize cell(data)
ESerialize a cell array, doesn’t mind shape.
r = serialize char(data)
ESerialize a char array, doesn’t mind shape.
r = serialize logical(data)
ESerialize a logical array, doesn’t mind shape.
r = serialize struct(data)
ESerialize a struct array, doesn’t mind shape.
data = unserialize( r )
NUnserialize [1xn] uint8 array r to a matlab variable.
data = unserialize cell(r)
NUnserialize a cell array, doesn’t mind shape.
data = unserialize char(r)
NUnserialize a char array, doesn’t mind shape.
data = unserialize logical(r)
NUnserialize a logical array, doesn’t mind shape.
data = unserialize struct(r)
NUnserialize struct array, doesn’t mind shape.
write tag(mem, tag name, vr, data)
RWrites a dicom tag (little endian explicit VR.
196