removed old code

This commit is contained in:
Djairo Hougee 2024-05-05 23:59:35 +02:00
parent b5dd0d5e49
commit b75466a08f
1 changed files with 1 additions and 20 deletions

View File

@ -19,25 +19,6 @@ BackgroundImage::BackgroundImage(string imagePath) : imagePath(imagePath) {
updateImage(); updateImage();
} }
vtkSmartPointer<vtkMatrix4x4> getMatrix() {
const double XMin = 0;
const double XMax = 661;
const double YMin = 0;
const double YMax = 661;
double eyeTransform[] = {
2/(XMax-XMin), 0, 0, -(XMax+XMin)/(XMax-XMin),
0, 2/(YMax-YMin), 0, -(YMax+YMin)/(YMax-YMin),
0, 0, 1, 0,
0, 0, 0, 1
};
auto matrix = vtkSmartPointer<vtkMatrix4x4>::New();
matrix->DeepCopy(eyeTransform);
return matrix;
}
void BackgroundImage::updateImage() { void BackgroundImage::updateImage() {
vtkSmartPointer<vtkImageReader2> imageReader; vtkSmartPointer<vtkImageReader2> imageReader;
@ -53,7 +34,7 @@ void BackgroundImage::updateImage() {
vtkSmartPointer<vtkImageData> imageData = imageCenterer->GetOutput(); vtkSmartPointer<vtkImageData> imageData = imageCenterer->GetOutput();
// TODO: transform the iamge to the range [-1,1] // TODO: transform the image to the range [-1,1]
// This will allow the backgorundImage to share a camera with our other layers. // This will allow the backgorundImage to share a camera with our other layers.
// Facilitating the cameraMovement callback. // Facilitating the cameraMovement callback.
vtkNew<vtkImageActor> imageActor; vtkNew<vtkImageActor> imageActor;