Skip to main content
  • Home
  • Development
  • Documentation
  • Donate
  • Operational login
  • Browse the archive

swh logo
SoftwareHeritage
Software
Heritage
Archive
Features
  • Search

  • Downloads

  • Save code now

  • Add forge now

  • Help

Revision a2e6a2b1dd1da48e502fc25126aa9b8a139ed543 authored by GUANGMING ZANG on 13 August 2018, 08:44:48 UTC, committed by GitHub on 13 August 2018, 08:44:48 UTC
Update README.md
1 parent 80d039c
  • Files
  • Changes
  • 6fa5ac5
  • /
  • SpaceTimeTomography
  • /
  • ST_Tomo
  • /
  • ST_Tomography.h
Raw File Download

To reference or cite the objects present in the Software Heritage archive, permalinks based on SoftWare Hash IDentifiers (SWHIDs) must be used.
Select below a type of object currently browsed in order to display its associated SWHID and permalink.

  • revision
  • directory
  • content
revision badge
swh:1:rev:a2e6a2b1dd1da48e502fc25126aa9b8a139ed543
directory badge
swh:1:dir:91e70d056e95abc862296428995b3114053bbc66
content badge
swh:1:cnt:36df7c89a72a736cb9827b9a2da95599020d18dc

This interface enables to generate software citations, provided that the root directory of browsed objects contains a citation.cff or codemeta.json file.
Select below a type of object currently browsed in order to generate citations for them.

  • revision
  • directory
  • content
(requires biblatex-software package)
Generating citation ...
(requires biblatex-software package)
Generating citation ...
(requires biblatex-software package)
Generating citation ...
ST_Tomography.h
//ST_Tomography.h

#ifndef __ST_Tomography_h
#define __ST_Tomography_h


#define cimg_use_tiff
#define cimg_use_tif
#include "CImg.h"
#include "Scene.h"
#include <string>

class VolumeData;
class RayCaster;
class TypicalRayProducer;
class CoherentVolume;
//class GridPartition;



class ST_Tomography : public Scene
{
public:

	

	ST_Tomography(double d1, double d2, double d3, double d4, double d5, double d6, const char *outputfile, int *imgwh, int projNo, int iters, int sartiters,
		double alp, double sid, const char **projsfile, double *oxyz,  double sdd, double ds, const char * _prior, 
		const char * _bp, int *volxyz,int nframes,double *startdg, int nrounds);
	virtual ~ST_Tomography();
		void InitViews();
	bool RotateVolume(int i );
	// data access 
	void SetData(VolumeData *data);
	void SART(int iframes);
	
	void SetBackGroundColor(float r,float g, float b);
	void GetBackGroundColor(float& r,float& g,float& b);

	void SetIsovalue(float isovalue);
	float GetIsovalue();

	void SetSurfaceColor(float r,float g,float b);
	void GetSurfaceColor(float &r,float &g,float &b);

	void SetLightDirection(float x,float y,float z);
	void SetLightIntensity(float intensity);
	void SetLightColor(float r,float g,float b);

	void SetAmbient(float value);
	float GetAmbient();

	void SetDiffuse(float value);
	float GetDiffuse();

	void SetSpecular(float value);
	float GetSpecular();

	void SetSpecularPower(float value);
	float GetSpecularPower();
	
	void  SetSampleDistance(float sd);
	float GetSampleDistance();

	
	virtual void Init();
	virtual void Resize(int width, int height);
	//void addMhaHeader(const int volDims[3],const float volSpacings[3]);
protected:
	
	virtual void RenderContent(int iframe);
	virtual void GetSize3D(float size[3]);
	virtual void Render();
	
private:
	// main loop
	bool _renderCoreFuc(int iframe);
	//bool _renderCoreFuc();

	// data
	VolumeData* m_Data;
	

	// ray caster
	RayCaster* m_RayCaster;
	// ray generator
	TypicalRayProducer* m_RayProducer;
	// main direction
	int m_mainDir;

	float m_BackgroundColor[3];
	//float *VoxelValue;
	float **pImg;

	float *pProImg;
	 //assign value to correction
	//Quaternion *pQuaternion;
	Quaternion **pQuaternion;
	int m_nframes;
	int m_nrounds;


	double m_s;
	double m_t;
	double m_l;
	const char *pOutput;
	const char **pInput;

	double m_mu;
	float **m_startDegree;
	float m_huberfactor;

};

#endif
The diff you're trying to view is too large. Only the first 1000 changed files have been loaded.
Showing with 0 additions and 0 deletions (0 / 0 diffs computed)
swh spinner

Computing file changes ...

back to top

Software Heritage — Copyright (C) 2015–2026, The Software Heritage developers. License: GNU AGPLv3+.
The source code of Software Heritage itself is available on our development forge.
The source code files archived by Software Heritage are available under their own copyright and licenses.
Terms of use: Archive access, API— Content policy— Contact— JavaScript license information— Web API