Esempio n. 1
0
void RFIGuiController::PlotTimeScatterComparison()
{
	if(IsImageLoaded())
	{
		MultiPlot plot(_plotManager->NewPlot2D("Time scatter comparison"), 8);
		RFIPlots::MakeScatterPlot(plot, OriginalData(), MetaData(), 0);
		RFIPlots::MakeScatterPlot(plot, ContaminatedData(), MetaData(), 4);
		plot.Finish();
		_plotManager->Update();
	}
}
Esempio n. 2
0
void RFIGuiController::PlotPowerSpectrumComparison()
{
	if(IsImageLoaded())
	{
		Plot2D &plot = _plotManager->NewPlot2D("Power spectrum comparison");

		TimeFrequencyData data = OriginalData();
		Image2DCPtr image = data.GetSingleImage();
		Mask2DCPtr mask = data.GetSingleMask();
		Plot2DPointSet &originalSet = plot.StartLine("Original");
		RFIPlots::MakePowerSpectrumPlot(originalSet, image, mask, MetaData());

		data = ContaminatedData();
		image = data.GetSingleImage();
		mask = data.GetSingleMask();
		Plot2DPointSet &alternativeSet = plot.StartLine("Alternative");
		RFIPlots::MakePowerSpectrumPlot(alternativeSet, image, mask, MetaData());
	
		_plotManager->Update();
	}
}
Esempio n. 3
0
#include "OriginalData.hpp"

OriginalData OriginalData::_o = OriginalData ();

// Where the start position data is in the memory
int OriginalData::_amuletStartPositionAddress = 0xA29D;
// Where the amulet can be located...
// The byte indicated the number of the room
// The position where the amultet will appear in the room is also another table defined later
int OriginalData::_amuletStartPositionData [8][4] = 
{ 
	{ 0x43,0x91,0x4D,0xCB },
	{ 0x9D,0xAC,0x2D,0x26 },
	{ 0xE1,0x73,0x44,0x2D },
	{ 0x35,0xC3,0x4D,0xA9 },
	{ 0x8A,0x4D,0xE1,0x52 },
	{ 0x43,0x58,0x39,0xE7 },
	{ 0x59,0xA7,0xE2,0x91 },
	{ 0x26,0x35,0xCB,0xA3 } 
};

// Where the info about the type of map is located
int OriginalData::_mazeLayoutTypeAddress = 0x6066;
// The type of maps in every location of the maze
// The maza is made up of 256 rooms
// Every bythe defined the number of the room
// Where the definition of the each room is appears in the next table
int OriginalData::_mazeLayoutTypeData [256] =
{ 
	0x00,0x14,0x14,0x1A,0x16,0x14,0x14,0x16,0x14,0x1A,0x1B,0x14,0x1A,0x14,0x16,0x02,
	0x26,0x21,0x1D,0x1C,0x11,0x0C,0x0D,0x17,0x1D,0x17,0x1D,0x21,0x11,0x1F,0x0B,0x03,