Skip to content

Instantly share code, notes, and snippets.

@antoinecourtin
Created March 16, 2022 08:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save antoinecourtin/e45dc71798e0abc55d1b63ca1a463fa8 to your computer and use it in GitHub Desktop.
Save antoinecourtin/e45dc71798e0abc55d1b63ca1a463fa8 to your computer and use it in GitHub Desktop.
Autogenerated from www.imagegraph.cc, My sketch title
{"caption":"My sketch title","offset":{"x":0,"y":0},"nodes":{"2bdd53c6-2131-4b14-853c-4d46a76e3289":{"id":"2bdd53c6-2131-4b14-853c-4d46a76e3289","position":{"x":658,"y":259},"type":"loadLocalImages","ports":{"port1":{"id":"port1","type":"bottom","properties":{"type":"imL"},"position":{"x":24,"y":106}}},"properties":{"text":"Loads images from your local Google Drive when in Colab, and from your local disk when in normal Python","form":"string","innerDefault":"./*.jpg","innerValue":"./*.jpg"}},"807bf955-aa6c-4f9d-b100-d892397e0834":{"id":"807bf955-aa6c-4f9d-b100-d892397e0834","position":{"x":746,"y":494},"type":"getRGB","ports":{"port1":{"id":"port1","type":"top","properties":{"type":"imL"},"position":{"x":24,"y":-12}},"port2":{"id":"port2","type":"bottom","properties":{"type":"fL"},"position":{"x":24,"y":59}},"port3":{"id":"port3","type":"bottom","properties":{"type":"fL"},"position":{"x":90,"y":59}},"port4":{"id":"port4","type":"bottom","properties":{"type":"fL"},"position":{"x":156,"y":59}}},"properties":{"text":"Extracts the average R, G, B color values for each image given. ","form":"none"}},"e27285a8-1a01-46a4-bf90-484f96e8b416":{"id":"e27285a8-1a01-46a4-bf90-484f96e8b416","position":{"x":926,"y":670},"type":"scatterImages","ports":{"port1":{"id":"port1","type":"top","properties":{"type":"imL"},"position":{"x":24,"y":-12}},"port2":{"id":"port2","type":"top","properties":{"type":"fL"},"position":{"x":90,"y":-12}},"port3":{"id":"port3","type":"top","properties":{"type":"fL"},"position":{"x":156,"y":-12}}},"properties":{"text":"A *direct visualization* of an image list on an x-y grid. ","form":"none"}}},"selected":{"type":"node","id":"2bdd53c6-2131-4b14-853c-4d46a76e3289"},"links":{"65c068e4-1c54-436b-a7bd-57042fcf426a":{"id":"65c068e4-1c54-436b-a7bd-57042fcf426a","from":{"nodeId":"2bdd53c6-2131-4b14-853c-4d46a76e3289","portId":"port1"},"to":{"nodeId":"807bf955-aa6c-4f9d-b100-d892397e0834","portId":"port1"}},"d77ac693-a4d9-4b46-b22e-a0048f5435d0":{"id":"d77ac693-a4d9-4b46-b22e-a0048f5435d0","from":{"nodeId":"807bf955-aa6c-4f9d-b100-d892397e0834","portId":"port1"},"to":{"position":{"x":759,"y":483}}},"335668b4-238c-44f7-94f6-28844d03c67a":{"id":"335668b4-238c-44f7-94f6-28844d03c67a","from":{"nodeId":"807bf955-aa6c-4f9d-b100-d892397e0834","portId":"port1"},"to":{"nodeId":"e27285a8-1a01-46a4-bf90-484f96e8b416","portId":"port1"}},"0d3964bd-f11e-4d07-9657-3ba512afbb1c":{"id":"0d3964bd-f11e-4d07-9657-3ba512afbb1c","from":{"nodeId":"807bf955-aa6c-4f9d-b100-d892397e0834","portId":"port2"},"to":{"nodeId":"e27285a8-1a01-46a4-bf90-484f96e8b416","portId":"port2"}},"407c4571-bbc5-458d-b53a-b15741a982ba":{"id":"407c4571-bbc5-458d-b53a-b15741a982ba","from":{"nodeId":"807bf955-aa6c-4f9d-b100-d892397e0834","portId":"port4"},"to":{"nodeId":"e27285a8-1a01-46a4-bf90-484f96e8b416","portId":"port3"}}},"hovered":{}}
Display the source blob
Display the rendered blob
Raw
{ "nbformat": 4, "nbformat_minor": 0, "metadata": { "colab": { "name": "ImageGraph.ipynb", "version": "0.3.2", "provenance": [], "collapsed_sections": [] }, "kernelspec": { "name": "python3", "display_name": "Python 3" } }, "cells": [ { "cell_type": "code", "metadata": { "id": "gsUbIGfNqSjV", "colab_type": "code", "colab": { "base_uri": "https://localhost:8080/", "height": 34 }, "outputId": "a306f9c8-c721-4280-fba4-f175cffa7090" }, "source": [ " !pip install -q -U git+https:\/\/github.com\/leoimpett\/pyimagegraph\nimport imagegraph as ig\nimL00 = ig.loadLocalImages(\".\/*.jpg\")\nfL01,fL02,fL03 = ig.getRGB(imL00)\n_ = ig.scatterImages(imL00,fL01,fL03) " ], "execution_count": 0, "outputs": [ { "output_type": "stream", "text": [ " " ], "name": "stdout" } ] } ]}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment