110 ASSERT(data->getSizeX() == mask->getSizeX() &&
111 data->getSizeY() == mask->getSizeY() &&
112 data->getSizeZ() == mask->getSizeZ() &&
113 data->getSizeT() == mask->getSizeT() );
122 for (it1=res.
begin(),it2=mask->begin();it1!=res.
end();it1++,it2++)
123 if (*it2) *it1 = (T)*it2;
126 for (it1=res.
begin(),it2=mask->begin();it1!=res.
end();it1++,it2++)
130 for (it1=res.
begin(),it2=mask->begin();it1!=res.
end();it1++,it2++)
131 if (*it2) *it1 = (T)
_value;
135 for (it1=res.
begin(),it2=mask->begin();it1!=res.
end();it1++,it2++)
140 for (it1=res.
begin(),it2=mask->begin();it1!=res.
end();it1++,it2++)
141 if (*it2) *it1 = (T)
_value;
carto::VolumeRef< T > operator()(const carto::rc_ptr< carto::Volume< T > > &data, const carto::rc_ptr< carto::Volume< U > > &mask)
Return the result of the merge of a data and a byte label data.