|
Isis 3.0 Application Source Code Reference |
Home |
00001 #include "Isis.h" 00002 #include "ProcessByLine.h" 00003 00004 using namespace std; 00005 using namespace Isis; 00006 00007 void cubeatt (Buffer &in, Buffer &out); 00008 00009 void IsisMain() { 00010 // We will be processing by line 00011 ProcessByLine p; 00012 00013 // Should we propagate tables 00014 if (!Application::GetUserInterface().GetBoolean("PROPTABLES")) { 00015 p.PropagateTables(false); 00016 } 00017 00018 // Setup the input and output cubes 00019 p.SetInputCube("FROM"); 00020 p.SetOutputCube ("TO" ); 00021 00022 p.StartProcess(cubeatt); 00023 p.EndProcess(); 00024 } 00025 00026 // Line processing routine 00027 void cubeatt (Buffer &in, Buffer &out) 00028 { 00029 // Loop and copy pixels in the line. 00030 for (int i=0; i<in.size(); i++) { 00031 out[i] = in[i]; 00032 } 00033 }