ENH: Allow custom name for ProcessObject Primary Input/Output.

Some filters would like to use a different name other that "Primary" for the
Primary (first) input or output of ProcessObject.  In this patch set, we add
protected methods for derived classes to change the name of their first input.

Change-Id: I8f6f9f72a165b699e51c2a8e2fb8b6a4dd323642
DOC: Clarify ProcessObject NumberOfRequiredInputs.

It appears that the ProcessObject NumberOfRequiredInputs should only count the
indexed inputs as opposed to the named inputs, which were added in ITK 4.0.

Documentation is clarified.  Method names are not changed for backwards
compatibility.

Change-Id: I0a0fe715c37f26c2f71d946e00b38bdea82b4dbb
STYLE: Fix style in itkBlockMatchingImageFilterTest.

Also make sure GetDisplacements and GetSimilarities are exercised and working.

Change-Id: I0618931a0623d8f80ca3092293a0cf3eca0f78d2
BUG: Fix BlockMatchingImageFilter for pipeline updating.

MakeOutput was being called every time during a pipeline update, which prevents
proper pipeline updating.  It is now only called once in the destructor.

We had to implement custom GenerateOutputInformation and
EnlargeOutputRequestedRegion that unfortunately prevent streaming.  We could not
use the default GenerateOutputInformation, because it calls
PointSet::CopyInformation(DataObject *), which internally tries a dynamic_cast,
and the inputs and outputs are different types of PointSet's.

Change-Id: If02ca1a41765a6071890d757f9a384ad128ed8ed
COMP: fix some conversion warnings from SimpleITK dashboard

This patch addresses warnings occour on the SimpleITK dashboard due to
implicit conversions.

Of particular note is the change in the internal accumulator for the
SumProjection filter to match the void return value of the other
projection accumulators.

Change-Id: I6bd109c7e239bfdd33b6e4cb881118570dee5e94
PERF: Change 1st parameter of UpdateTransformParameters to const

Change Transform::UpdateTransformParameters,
ObjectToObjectMetricBase::UpdateTransformParameters, and
overrides in derived classes.

This parameter should be const since there's no expectation for
it to be changed.

Change-Id: Iab65639119d34997efd04ff3d2f976294c638eb7
BUG: Use the input type for the threshold value

The input type is compared to the input pixel, it must be of the input
pixel type to be able to threshold the entire range. Previously,
trucation was occurring when the filter's ivar was being set.

Additionally, the pixel type of the foreground value was corrected in
certain places.

Documentation corrected.

These errors were detected during SimpleITK wrapping and testing.

Change-Id: Icba802f5b0b2a92985104da40331b0a80f0bb50e
Merge topic 'FixSomeWarningsFromSimpleITK'

4254026 COMP: fix some conversion warnings from SimpleITK dashboard
Merge topic 'FixTypeOfThresholdInBinaryThresholdProjection'

4be6fe5 BUG: Use the input type for the threshold value
BUG: Inputs to filters should be constant

Changed all 4 inputs to the MaskedFFTNormalizedcorrelation filter to
be constant. This also effects the the non-masked derived class.

Change-Id: I4589da42a57953ec59efdc877aef44e99a2abc98
BUG: Output image is zero when no seeds are provided

The default parameters for filters should have well defined
results. The default for VectorConfidenceConnectedImageFilters is zero
initial seeds. This resulted in NaN and numeric exceptions during
testing. If there are no seeds set, then there is not region to grow
and the results segmentation is empty.

This case is tested in SimpleITK and currently causing errors.

Change-Id: Ifd92275d35c93d821a79224153bb916712c0432b
Merge topic 'FixDefaultVectorConfidenceConnected'

748d3e5 BUG: Output image is zero when no seeds are provided
Merge topic 'FixNonConstInputsFFTXCORR'

32c12a2 BUG: Inputs to filters should be constant
BUG: Wrong viewport for mixed rgb/non-rgb images.

If an image and rgb image are added, the viewports were incorrect.

ENH: AddImage for RGBImage.

Now, AddImage can be used for RGB images.

Change-Id: Ifcb38e8ad44783424d2fc6ee4ab61b889b20ed1d
Merge topic 'QuickViewBug'

7acf4bc BUG: Wrong viewport for mixed rgb/non-rgb images.
Merge topic 'MakeUpdateTxfParamsConst'

3d89957 PERF: Change 1st parameter of UpdateTransformParameters to const
DOC: Make diagram for PhasedArray3DSpecialCoordinatesImage verbatim.

Change-Id: I05c999b884ed688d369b7e9aca92bccb9d5da281
BUG: remove PatchBasedDenoising from WrapITK until fixed

IT appears that when Explicit instantiation is turned on
PatchBasedDenoising does not compile. So remove it from wrapITK untill
this issue is fixed.

Change-Id: I7880d214c73fc88af7222515dd8d85e4151a08c5
Merge topic 'PhasedArrayDoc'

7711884 DOC: Make diagram for PhasedArray3DSpecialCoordinatesImage verbatim.
Merge topic 'NoPatchBasedDenoisingWrapITK'

369b22a BUG: remove PatchBasedDenoising from WrapITK until fixed