@classmethod
def from_pixels_and_mask(cls, pixels, mask):
    """Create *Coordinates* from a list of coordinates in pixel units and a mask which allows these coordinates to
        be converted to scaled units."""
    coordinates = []
    for coordinate_set in pixels:
        coordinates.append([mask.geometry.
            scaled_coordinates_from_pixel_coordinates(pixel_coordinates=
            coordinates) for coordinates in coordinate_set])
    return cls(coordinates=coordinates)
