Segmentations export

Dear slicer experts
I have a problem, In segmentations, I want to convert the stru-5 export to lable-5, the result is that the two ranges are not the same after exporting, what is the problem? In segmentations, nothing has changed, it is the default state.

Looking forward to your reply. Thank you.

Hi
Kind-of I did encounter the same issue inside this “Export” there since this module has a “smart” way while exporting: the exported part is cropped based on the boundary box of segments (that’s why the output size is being changed.).
Better to do some of your own python modules, using the function ==>
slicer.vtkSlicerSegmentationsModuleLogic.ExportSegmentsToLabelmapNode(segmentationNode, segmentIds, labelmapVolumeNode, referenceVolumeNode)

so the output of “labelmapVolumeNode” will take dimensions of the ref. vol. node

addition, the above module need have a defined ref. vol.

Thank you very much your answer.