# NOT RUN {
image=readFITS(system.file("extdata", 'VIKING/mystery_VIKING_Z.fits', package="ProFound"))
profound=profoundProFound(image, skycut=1.5, magzero=30, groupstats=TRUE, verbose=TRUE)
merge=profoundCatMerge(profound$segstats, profound$groupstats,
profound$group$groupsegID, 1)
profound$segstats[1,'mag']
merge[1,'mag'] #The merged object is brighter, as we should expect.
# }
Run the code above in your browser using DataLab