From 3a6769465bee7d56d0ddff36613b886446421e07 Mon Sep 17 00:00:00 2001 From: Willem Jan Palenstijn Date: Wed, 16 Apr 2014 11:12:55 +0000 Subject: Remove padding in 2D cuda in favour of Border mode --- src/CudaDataOperationAlgorithm.cpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'src') diff --git a/src/CudaDataOperationAlgorithm.cpp b/src/CudaDataOperationAlgorithm.cpp index f27cab8..50b2faa 100644 --- a/src/CudaDataOperationAlgorithm.cpp +++ b/src/CudaDataOperationAlgorithm.cpp @@ -135,42 +135,42 @@ void CCudaDataOperationAlgorithm::run(int _iNrIterations) unsigned int width = m_pData[0]->getWidth(); unsigned int height = m_pData[0]->getHeight(); if (m_pMask == NULL) - astraCUDA::processVolCopy(m_pData[0]->getData(), m_fScalar[0], width, height); + astraCUDA::processVolCopy(m_pData[0]->getData(), m_fScalar[0], width, height); else - astraCUDA::processVolCopy(m_pData[0]->getData(), m_pMask->getDataConst(), m_fScalar[0], width, height); + astraCUDA::processVolCopy(m_pData[0]->getData(), m_pMask->getDataConst(), m_fScalar[0], width, height); } else if (m_sOperation == "$1/s1" || m_sOperation == "$1./s1") // data / scalar { unsigned int width = m_pData[0]->getWidth(); unsigned int height = m_pData[0]->getHeight(); if (m_pMask == NULL) - astraCUDA::processVolCopy(m_pData[0]->getData(), 1.0f/m_fScalar[0], width, height); + astraCUDA::processVolCopy(m_pData[0]->getData(), 1.0f/m_fScalar[0], width, height); else - astraCUDA::processVolCopy(m_pData[0]->getData(), m_pMask->getDataConst(), 1.0f/m_fScalar[0], width, height); + astraCUDA::processVolCopy(m_pData[0]->getData(), m_pMask->getDataConst(), 1.0f/m_fScalar[0], width, height); } else if (m_sOperation == "$1+s1") // data + scalar { unsigned int width = m_pData[0]->getWidth(); unsigned int height = m_pData[0]->getHeight(); - astraCUDA::processVolCopy(m_pData[0]->getData(), m_fScalar[0], width, height); + astraCUDA::processVolCopy(m_pData[0]->getData(), m_fScalar[0], width, height); } else if (m_sOperation == "$1-s1") // data - scalar { unsigned int width = m_pData[0]->getWidth(); unsigned int height = m_pData[0]->getHeight(); - astraCUDA::processVolCopy(m_pData[0]->getData(), -m_fScalar[0], width, height); + astraCUDA::processVolCopy(m_pData[0]->getData(), -m_fScalar[0], width, height); } else if (m_sOperation == "$1.*$2") // data .* data { unsigned int width = m_pData[0]->getWidth(); unsigned int height = m_pData[0]->getHeight(); - astraCUDA::processVolCopy(m_pData[0]->getData(), m_pData[1]->getDataConst(), width, height); + astraCUDA::processVolCopy(m_pData[0]->getData(), m_pData[1]->getDataConst(), width, height); } else if (m_sOperation == "$1+$2") // data + data { unsigned int width = m_pData[0]->getWidth(); unsigned int height = m_pData[0]->getHeight(); - astraCUDA::processVolCopy(m_pData[0]->getData(), m_pData[1]->getDataConst(), width, height); + astraCUDA::processVolCopy(m_pData[0]->getData(), m_pData[1]->getDataConst(), width, height); } } -- cgit v1.2.3