Last change
on this file since 4 was
4,
checked in by zhangj, 10 years ago
|
Initial import--MML version from SOLEIL@2013
|
File size:
713 bytes
|
Line | |
---|
1 | function a_f = tableNew(a_f, a_colname, a_parentImg, a_parentFilter, varargin) |
---|
2 | |
---|
3 | if ~isa(a_parentImg, 'BasicDB') |
---|
4 | error('expect the first parent to be an image database') |
---|
5 | end |
---|
6 | if ~iscell(a_parentFilter) |
---|
7 | a_parentFilter = {a_parentFilter}; |
---|
8 | end |
---|
9 | for i = 1:numel(a_parentFilter) |
---|
10 | if ~(isa(a_parentFilter{i}, 'FilterDB')||isa(a_parentFilter{i}, 'ParFilterDB')) |
---|
11 | error('expect the second parent to be a filter database') |
---|
12 | end |
---|
13 | end |
---|
14 | |
---|
15 | if any(strcmp(varargin, 'TAG')) |
---|
16 | error('tag: cannot be overriden') |
---|
17 | end |
---|
18 | |
---|
19 | if any(strcmp(varargin, 'PARENTS')) |
---|
20 | error('parents: cannot be overriden') |
---|
21 | end |
---|
22 | |
---|
23 | a_f.BasicDB = tableNew(a_f.BasicDB, a_colname, 'TAG', 'FilteredDB',... |
---|
24 | 'PARENTS', a_parentImg, a_parentFilter{:}, varargin{:}); |
---|
Note: See
TracBrowser
for help on using the repository browser.