Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,9 @@ DenseFiniteDifferenceImageFilter<TInputImage, TOutputImage>::CopyInputToOutput()
// Check if we are doing in-place filtering
if (this->GetInPlace() && this->CanRunInPlace())
{
typename TInputImage::Pointer tempPtr = output.GetPointer();
if (tempPtr && tempPtr->GetPixelContainer() == input->GetPixelContainer())
const void * const inputPixelContainer = input->GetPixelContainer();
const auto * const tempPtr = output.GetPointer();
Comment thread
jhlegarreta marked this conversation as resolved.
if (tempPtr != nullptr && tempPtr->GetPixelContainer() == inputPixelContainer)
{
// the input and output container are the same - no need to copy
return;
Expand Down