blob: 4e4e326fa2e0cfadbcbeacdbeddee2783d42fc9a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
function astra_data_op_mask(op, data, scalar, mask, gpu_core)
cfg = astra_struct('DataOperation_CUDA');
cfg.Operation = op;
cfg.Scalar = scalar;
cfg.DataId = data;
cfg.option.GPUindex = gpu_core;
cfg.option.MaskId = mask;
alg_id = astra_mex_algorithm('create',cfg);
astra_mex_algorithm('run',alg_id);
astra_mex_algorithm('delete',alg_id);
|