ENH: Fix Cppcheck possible inefficient checking for emptiness warning

Change-Id: I49d0bd3ca1845266e0ce8563aa8891181aef728b
ENH: Fix Cppcheck warnings in RegisterImages

Change-Id: I3eb85d0f7f98390c9b996b7271e57d50dc6e136a
Merge topic 'FixCppcheckSTLSizeWarning'

1f7b2d7 ENH: Fix Cppcheck possible inefficient checking for emptiness warning
Merge topic 'FixRegisterImagesVariableScope'

42aeb52 ENH: Fix Cppcheck warnings in RegisterImages
ENH: Fix Cppcheck warnings in RegisterImages

Change-Id: I3eb85d0f7f98390c9b996b7271e57d50dc6e136a
Merge topic 'FixRegisterImagesVariableScope'

cd637e9 ENH: Fix Cppcheck warnings in RegisterImages