* Allocates a user-specified output cube whose size matches the first input * cube. * * @return Cube* * * @param parameter User specified output file. For example, "TO" is a popular * user parameter. If the user specified TO=output.cub, then * this routine would allocate the file output.cub with size * specified by the firs
| 161 | * @throws Isis::iException::Message |
| 162 | */ |
| 163 | Isis::Cube *Process::SetOutputCube(const QString ¶meter) { |
| 164 | // Make sure we have an input cube to get a default size from |
| 165 | if(InputCubes.size() == 0) { |
| 166 | QString message = "No input images have been selected ... therefore"; |
| 167 | message += "the output image size can not be determined"; |
| 168 | throw IException(IException::Programmer, message, _FILEINFO_); |
| 169 | } |
| 170 | |
| 171 | int nl = InputCubes[0]->lineCount(); |
| 172 | int ns = InputCubes[0]->sampleCount(); |
| 173 | int nb = InputCubes[0]->bandCount(); |
| 174 | return SetOutputCube(parameter, ns, nl, nb); |
| 175 | } |
| 176 | |
| 177 | |
| 178 | /** |