def choose_segmentation_and_projection_channels(info):
    dialog = NonBlockingGenericDialog("Select channels...")
    channels = [info.ch1_label, info.ch2_label]
    dialog.addRadioButtonGroup("Segmentation channel: ", channels, 1,
                               len(channels), channels[0])
    dialog.addRadioButtonGroup("Projection channel: ", channels, 1,
                               len(channels), channels[1])
    dialog.showDialog()
    if dialog.wasCanceled():
        return None
    seg_ch = dialog.getNextRadioButton()
    proj_ch = dialog.getNextRadioButton()
    return channels.index(seg_ch), channels.index(proj_ch)
        imp2 = IJ.getImage()
        IJ.run(imp2, "Draw", "slice")
        IJ.run("Select None")

    if always_auto is True:
        to_transport_channel()
        average_max = high(bit_depth)

    if always_auto is False:
        if always_select is False:
            nbgd = NonBlockingGenericDialog("Golgi_selection")
            Methods = ['Automatic Selection', 'Manual Selection']
            nbgd.addRadioButtonGroup("Methods", Methods, 2, 1, Methods[0])
            nbgd.hideCancelButton()
            nbgd.showDialog()
            golgi_method = nbgd.getNextRadioButton()
            if golgi_method == Methods[0]:
                average_max = high(bit_depth)
            elif golgi_method == Methods[1]:
                to_golgi_channel()
                IJ.setTool("polygon")
                region = 'Select Golgi'
                selection(region)
                to_transport_channel()
                average_max = high(bit_depth)
                IJ.setForegroundColor(255, 255, 255)
                IJ.setBackgroundColor(1, 1, 1)
                imp2 = IJ.getImage()
                IJ.run(imp2, "Draw", "slice")
                IJ.run("Select None")