1) When compiling my app:
/usr/local/include/ImageMagick/Magick++/STL.h: In instantiation of 'void Magick::forwardFourierTransformImage(Container*, const Magick::Image&, bool) [with Container = std::list<Magick::Image, std::allocator<Magick::Image> >]':
../DStation/dstation.cpp:502: instantiated from here
502th line of dstation.cpp:
forwardFourierTransformImage(&FFTContainer,inputImage,false);
2) /usr/local/include/ImageMagick/Magick++/STL.h:2229: warning: unused parameter 'magnitude_'
From v6.6.4-3 STL.h:
Code: Select all
// Build image list
MagickCore::Image* images = ForwardFourierTransformImage(
image_.constImage(), MagickTrue, &exceptionInfo);
I assume we shall use the following construction to use magnitude_:
magnitude_ == true ? MagickTrue : MagickFalse
UPD: I applied this construction to STL.h, rebuilt, and this fixes both warnings. Here is how the correct function looks like in STL.h:
Code: Select all
template <class Container >
void forwardFourierTransformImage( Container *fourierImages_,
const Image &image_, const bool magnitude_ ) {
MagickCore::ExceptionInfo exceptionInfo;
MagickCore::GetExceptionInfo( &exceptionInfo );
// Build image list
MagickCore::Image* images = ForwardFourierTransformImage(
image_.constImage(), magnitude_ == true ? MagickTrue : MagickFalse, &exceptionInfo);
// Ensure container is empty
fourierImages_->clear();
// Move images to container
insertImages( fourierImages_, images );
// Report any error
throwException( exceptionInfo );
(void) MagickCore::DestroyExceptionInfo( &exceptionInfo );
}