def serialize_value(value):
    """
    Serialize a value in an DeepImageJ XML compatible manner.

    :param value:
    :return:
    """
    if isinstance(value, bool):
        return str(value).lower()
    else:
        return str(value)