parameters: (image_fnames)
return_statement: return images_df
docstring: For each image, square the image and crop its center.
  
    Input:
      image_fnames: list
  
    Output:
      images_df: pandas.DataFrame
        With 'image', 'window', 'filename' columns.
docstring_summary: For each image, square the image and crop its center.
docstring_tokens: For each image square the image and crop its center .
function: def _assemble_images_center_only(image_fnames):
    """
    For each image, square the image and crop its center.
  
    Input:
      image_fnames: list
  
    Output:
      images_df: pandas.DataFrame
        With 'image', 'window', 'filename' columns.
    """
    crop_start, crop_end = IMAGE_CENTER, IMAGE_CENTER + CROPPED_DIM
    crop_window = np.array((crop_start, crop_start, crop_end, crop_end))
  
    data = []
    for image_fname in image_fnames:
      image, dims = format_image(load_image(image_fname))
      data.append({
        'image': image[np.newaxis, :,
                       crop_start:crop_end,
                       crop_start:crop_end],
        'window': _image_coordinates(dims, crop_window),
        'filename': image_fname
      })
  
    images_df = pd.DataFrame(data)
    return images_df
function_tokens: def _assemble_images_center_only ( image_fnames ) : crop_start , crop_end = IMAGE_CENTER , IMAGE_CENTER + CROPPED_DIM crop_window = np . array ( ( crop_start , crop_start , crop_end , crop_end ) ) data = [ ] for image_fname in image_fnames : image , dims = format_image ( load_image ( image_fname ) ) data . append ( { 'image' : image [ np . newaxis , : , crop_start : crop_end , crop_start : crop_end ] , 'window' : _image_coordinates ( dims , crop_window ) , 'filename' : image_fname } ) images_df = pd . DataFrame ( data ) return images_df