Answer by AJMansfield for Tracing the Hues of an Image
MATLAB, 136function t(g,x,y,l)m=imread(g);imshow(m); h=2*pi*rgb2hsv(m);h=h(:,:,1);s=streamline(cos(h),-sin(h),x,y,[1,l]);set(s,'LineW',1,'Co','k');Copied most of the setup and such from @sanchises, but...
View ArticleAnswer by wolfhammer for Tracing the Hues of an Image
JavaScript 414function P(G,x,y,l){I=new...
View ArticleAnswer by grovesNL for Tracing the Hues of an Image
Python, 203 172from scipy.misc import*def f(i,x,y,l): a=imread(i);Y,X,_=a.shape;o=a.copy()...
View ArticleAnswer by Sanchises for Tracing the Hues of an Image
MATLAB, 186 172The game is on! Call as t('YourImage.ext',123,456,100'), for an image of any type MATLAB supports, starting at (x,y)=(123,456) and maximum length 100. Initial positions cannot be exactly...
View ArticleAnswer by Kevin Workman for Tracing the Hues of an Image
Processing, 323 charactersvoid h(String f,float x,float y,float m){PImage i=loadImage(f);PImage i2=loadImage(f);while(m>0){color c=i.get((int)x,(int)y);float r=red(c)/255;float g=green(c)/255;float...
View ArticleAnswer by BrainSteel for Tracing the Hues of an Image
C with SDL, 549 516 bytesI'll start this party! For some reason, I felt like trying my hand at golf tonight. What you guys do is hard... If there's one thing I don't see any of on this site, it's SDL....
View ArticleTracing the Hues of an Image
Load an image into this stack snippet and move your mouse over it. A black curve that follows the hue angle, starting at your cursor point, will be drawn:<script...
View Article
More Pages to Explore .....