# NOT RUN {
image=readFITS(system.file("extdata", 'VIKING/mystery_VIKING_Z.fits', package="ProFound"))
profound=profoundProFound(image, skycut=1.5, magzero=30, verbose=TRUE)
#Look for nearby (in this case touching) neighbours
group=profoundSegimGroup(profound$segim)
#Look at the first few rows (groups 1:5):
group$groupsegID[1:5,]
#To access the embedded vectors you have to use unlist:
unlist(group$groupsegID[1,2])
#We can check to see which segments are in group number 1:
profoundSegimPlot(image$imDat, profound$segim)
magimage(group$groupim==1, col=c(NA,'red'), add=TRUE)
# }
Run the code above in your browser using DataLab