MCPcopy Create free account
hub / github.com/CRVI/OpenCLIPP / GetOptions

Method GetOptions

C++/programs/Program.cpp:174–190  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

172}
173
174const vector<string> ImageProgram::GetOptions()
175{
176 vector<string> Options(SImage::NbDataTypes * MaxNbChannels);
177
178 for (int i = 0; i < SImage::NbDataTypes; i++)
179 {
180 SImage::EDataType Type = SImage::EDataType(i);
181
182 string options = string("-D ") + GetDataTypeList()[i];
183
184 Options[GetProgramId(Type, 1)] = options;
185 for (int j = 2; j <= MaxNbChannels; j++)
186 Options[GetProgramId(Type, j)] = options + " -D NBCHAN=" + to_string(j);
187 }
188
189 return Options;
190}
191
192void ImageProgram::PrepareFor(const ImageBase& Source)
193{

Callers

nothing calls this directly

Calls 2

EDataTypeEnum · 0.85
GetDataTypeListFunction · 0.85

Tested by

no test coverage detected