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
  • /
  • ImageFormationModel
  • /
  • TypicalRayProducer.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:314b434087cc08ec6b52c9a3e3f3261667e88ff4
content badge
swh:1:cnt:b418ce46d902d2581e48e9ce7cec1be414771faa

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 ...
TypicalRayProducer.h
// TypicalRayProducer.h

#ifndef __TypicalRayProducer_h_h
#define __TypicalRayProducer_h_h

#include "Matrix4x4.h"

class TypicalRayProducer
{
public:
	TypicalRayProducer(int volX,int volY,int volZ, int imgW, int imgH,double ds, const char * _bp);
	void Initial();
	virtual ~TypicalRayProducer();
	void SetBackProjectionMode(){m_BackProjection=true; } 
	
	bool IsBackProjectionMode(){return m_BackProjection;}
	
	void SetViewPort(int width,int height);  
	void SetVolSize(const int volDims[3],const float volSpacings[3]);
	void GetVolSize(int volDims[3], float volSpacings[3]);

	void SetViewMatrix(const Matrix4x4& ViewMatrix);
	void SetProjectionMatrix(const Matrix4x4& ProjectionMatrix);

	void UpdateMatrixAndBounds();

	
	const Matrix4x4& GetPixelsToModelMatrix() {return m_PixelsToModelMatrix;}
	const Matrix4x4& GetModelToVolumeMatrix() {return m_ModelToVolumeMatrix;}

	
	void GetImageInUseSize(int imageSize[2]);
	void GetImageOrigin(int imageOrigin[2]);
		float *GetTotalWeight() { return m_EachVoxel_TotalWeight;}
	
	float *GetImageData() { return m_ImageData; }
	float *GetWeightOfImage(){return m_WeightOfImage;}

	float *GetImageRaylength() { return m_imageraylength; }

	float *GetContributions() {return m_Voxel_Contributions;}
	float* GetCorrection() {return m_Correction;}
		
	void RenderImage();

public:

	void _calculateMatrix();

	bool _calculateBounds();

	int m_ViewPort[2];  
	int m_VolDims[3]; 
	float m_VolSpacings[3]; 
	float m_VolSize[3]; 

	
	Matrix4x4 m_ViewMatrix;
	Matrix4x4 m_ProjectionMatrix;

	
	Matrix4x4 m_PixelsToModelMatrix;
	Matrix4x4 m_ModelToPixelsMatrix;

	Matrix4x4 m_ModelToVolumeMatrix;
	Matrix4x4 m_PixelsToViewMatrix;



	Matrix4x4 m_VolumeToModelMatrix;

	Matrix4x4 m_model_view;
	float *m_Correction;
	
	Vector4 m_CameraPos;

	
	int m_ImageInUseSize[2];
	int m_ImageOrigin[2];

	
	float *m_ImageData;
	float *m_WeightOfImage;


	float *m_EachVoxel_TotalWeight;
	float *m_Voxel_Contributions;

	float *m_imageraylength;
	bool  m_BackProjection;
	
	double m_offx;
	double m_offy;
	

};

#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