-
Notifications
You must be signed in to change notification settings - Fork 168
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ApolloPanStitch App and Test Update (#4164)
* Updated apollopanstitcher app format * Fixed typo * Updated setoutputcube for ProcessMosaic * Initial stab at the apollopanstitcher gtest * Updated test name * Updated file name * Updated test and removed redundant ui access * Removed old test makefiles
- Loading branch information
1 parent
3f64c29
commit 72f3d10
Showing
8 changed files
with
850 additions
and
813 deletions.
There are no files selected for viewing
787 changes: 787 additions & 0 deletions
787
isis/src/apollo/apps/apollopanstitcher/apollopanstitcher.cpp
Large diffs are not rendered by default.
Oops, something went wrong.
11 changes: 11 additions & 0 deletions
11
isis/src/apollo/apps/apollopanstitcher/apollopanstitcher.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#ifndef apollopanstitcher_h | ||
#define apollopanstitcher_h | ||
|
||
#include "Pvl.h" | ||
#include "UserInterface.h" | ||
|
||
namespace Isis{ | ||
extern void apolloPanStitcher(UserInterface &ui); | ||
} | ||
|
||
#endif |
Large diffs are not rendered by default.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
24 changes: 0 additions & 24 deletions
24
isis/src/apollo/apps/apollopanstitcher/tsts/default/Makefile
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
#include <QTemporaryDir> | ||
#include <memory> | ||
|
||
#include "apollopanstitcher.h" | ||
#include "Fixtures.h" | ||
#include "Pvl.h" | ||
#include "PvlGroup.h" | ||
#include "TestUtilities.h" | ||
#include "Histogram.h" | ||
#include "Endian.h" | ||
#include "PixelType.h" | ||
|
||
#include "gtest/gtest.h" | ||
#include "gmock/gmock.h" | ||
|
||
#include "Fixtures.h" | ||
|
||
using namespace Isis; | ||
|
||
static QString APP_XML = FileName("$ISISROOT/bin/xml/apollopanstitcher.xml").expanded(); | ||
|
||
TEST_F(TempTestingFiles, FunctionalTestsApolloPanStitcherDefault) { | ||
QVector<QString> args = {"file_base=$ISISTESTDATA/isis/src/apollo/apps/apollopanstitcher/tsts/default/input/AS15_P_0177R10", | ||
"to=" + tempDir.path() + "/reduced8.cub", | ||
"microns=50"}; | ||
|
||
UserInterface options(APP_XML, args); | ||
try { | ||
apolloPanStitcher(options); | ||
} | ||
catch (IException &e) { | ||
FAIL() << "Unable to stitcher apollo images: " << e.toString().toStdString().c_str() << std::endl; | ||
} | ||
Cube outputCube(options.GetFileName("TO")); | ||
|
||
std::unique_ptr<Histogram> hist (outputCube.histogram()); | ||
|
||
EXPECT_DOUBLE_EQ(hist->Average(), 53214.457630315941); | ||
EXPECT_DOUBLE_EQ(hist->Sum(), 3243279908182.748); | ||
EXPECT_EQ(hist->ValidPixels(), 60947345); | ||
EXPECT_DOUBLE_EQ(hist->StandardDeviation(), 20175.877734537076); | ||
} |