'**SUMMARY**
Transform a single or a set of x values from one reference frame to another.
Options are:
SRC - the coordinates of the source image.
ROI - the coordinates of the ROI
ROI_UNIT - unit coordinates in the frame of reference of the ROI
SRC_UNIT - unit coordinates in the frame of reference of source image.
**PARAMETERS**
* *x* - A list of x values or a single x value.
* *intype* - A string indicating the input format of the data.
* *output* - A string indicating the output format of the data.
**RETURNS**
A list of the transformed values.
**EXAMPLE**
>>> img = Image(\'lenna\')
>>> blobs = img.findBlobs()
>>> roi = ROI(blobs[0])
>>> x = roi.crop()..... /find some x values in the crop region
>>> xt = roi.CoordTransformX(x)
>>> #xt are no in the space of the original image.'

def CoordTransformX(self, x, intype='ROI', output='SRC'):

    if (self.image is None):
        logger.warning('No    image    to    perform    that    calculation')
        return None
    if isinstance(x, (float, int)):
        x = [x]
    intype = intype.upper()
    output = output.upper()
    if (intype == output):
        return x
    return self._transform(x, self.image.width, self.w, self.xtl, intype, output)
