def construct_segmentation_volume
      if @volumes.first.shape == @original_volumes.first.shape
        # Just reshape the vector (and ensure that it remains byte type):
        @true_segmentation = @true_segmentation_vector.reshape(*@original_volumes.first.shape).to_type(1)
      else
        # Need to take into account exactly which indices (slices, columns, rows) have been removed.
        # To achieve a correct reconstruction, we will use the information on the original volume indices of our
        # current volume, and apply it for each dimension.
        @true_segmentation = NArray.byte(*@original_volumes.first.shape)
        true_segmentation_in_reduced_volume = @true_segmentation_vector.reshape(*@volumes.first.shape)
        @true_segmentation[*@original_indices] = true_segmentation_in_reduced_volume
      end
    end
def construct_segmentation_volume
      if @volumes.first.shape == @original_volumes.first.shape
        # Just reshape the vector (and ensure that it remains byte type):
        @true_segmentation = @true_segmentation_vector.reshape(*@original_volumes.first.shape).to_type(1)
      else
        # Need to take into account exactly which indices (slices, columns, rows) have been removed.
        # To achieve a correct reconstruction, we will use the information on the original volume indices of our
        # current volume, and apply it for each dimension.
        @true_segmentation = NArray.byte(*@original_volumes.first.shape)
        true_segmentation_in_reduced_volume = @true_segmentation_vector.reshape(*@volumes.first.shape)
        @true_segmentation[*@original_indices] = true_segmentation_in_reduced_volume
      end
    end
Reshapes the true segmentation vector to a volume which is comparable
 with the input volumes for the Staple instance. If volume reduction has
 been peformed, this must be taken into account.