Shifting image behind perlin noise flow field doesn't work in Atom - perlin-noise

I would really appreciate it if someone could help me out. I made a Perlin Noise flow field in Atom. Behind that flow field I set an image and that worked fine. But when I want to make that image shift a bit to the right after x seconds (and back), I don't get it to work. The flow field is now behind the image instead of the other way around.
I get that the flow field starts in the setup and thats the reason why I can't set my image in the draw, but does someone know a solution?
You can see my code on: https://www.openprocessing.org/sketch/423718
Thanks in advance! :)

Related

How may I add a Scale to the left side of a Graph in Libreoffice Calc

Is there a Way to get a scale from zero to the max value used in the linked Table?
Hey there, im using Libreoffice calc to make up some bloodsugar analysis.
I got the problem now, that i made a graph and this graph does not contain a scale on the left side.
I need to find a way to add this.
Can you help me please?
Ill upload the document to Dropbox
and make a screenshot to explain what i mean
Thank you very much!!

How to detect if the image taken is selfie using image processing

I am doing a project,where I need to determine if the image is self taken or not? I am confused whether to use machine learning approach or image processing ? Machine learning approach may not give me very effective results.I am looking for image processing method.Can anyone help me out here..?? I can detect the faces in the image but that is not enough.
Machine learning will work way better in my opinion. With few exemples you should get a correct result. But it won't be perfect.
If you want something more occurate you will need other detailed. For exemple if it is a smartphone application you know if the front camera was used. Maybe another great source of data is the accelerometer because selfies are not taken the same way of regular picture.
If you have faces in the picture and another relevant indicator you probably can state that the picture is a selfie.

Change image colormap to deuteranopia in Matlab

I've been trying for a long time to change my colormap of my images using a custom 256x3 colormap to switch the impression of a 'normal sighted' person to the one a person with deuteranopia (red-green-blindness) can see.
The colormap has already been created, but in no way I get to apply it to the original image.
The code
load('ColormapsDefVis.mat')
fig=figure
a=imread('Regenbogen.png');
[b map]=rgb2ind(a,256);
c=ind2rgb(b, DeuteranopiaColorMap);
imshow(c);
did not work as well as
load('ColormapsDefVis.mat')
fig=figure
a=imread('Regenbogen.png');
imshow(a);
set(fig,'Colormap',DeuteranopiaColorMap)
did not.
Does anyone know how to change the custom colormap correctly?
I would appreciate your help very much!
The first peice of code works. You have to be making a mistake or interpreting the results wrongly.
I suggest you look a to a thing. Make sure you image is unit8 or single. Additionally, you probably dont what dithering to happen, so I suggest you do rgb2ind(a,256, 'nodither'). The results of the dithering may be fooling your eyes, but we can't know as you didn't post any image.
To convince yourself that rgb2ind works, see the code below. You should be able to test it in you computer.
img=imread('cameraman.tif');
indimg=img;
cmap=hsv(255); % colromap 1
cmap2=cmap(end:-1:1,:); % colromap 2
subplot(121);
c=ind2rgb(indimg,cmap );
imshow(c)
subplot(122);
c2=ind2rgb(indimg,cmap2 );
imshow(c2)
Thank you very much for your help Ander, the approach using colormaps was just not the efficient solution i was looking for. Although I am sure it would work too, there is a way easier solution for the problem :)
To receive the impression of being red-green-blind I took the idea that people suffering from this condition cannot distinguish between reddish and greenish objects. So my solution is to plot the mean from the red and green RGB-image channel in both channels to make them indistinguishable.
a=imread('peppers.png');
figure,
subplot(121)
imshow(a)
c=(a(:,:,1)+a(:,:,2))/2; %Mean value between channel red and green
a(:,:,1)=c; %Switch the red channel to the mean
a(:,:,2)=c; %Switch the green channel to the mean
subplot(122)
imshow(a)
Unfortunately, stackoverflow refuses me to upload images as I do not have enough reputation, but the code shall work using any RGB-image, for example the builtin demo image 'peppers.png'.
Hope this helps anyone else too!

Rotating a set of images

I am trying to setup a "rotating image" for part of a site I am working on. I have taken many photos of a single item (30+), and I want to display them like it is a rotating 3D image (with a possible draggable speed).
One approach I have taken is setting it as a CSS background, and looping through the images every 0.1s. It works alright, but it flickers like crazy until the image has done a full rotation (I am assuming this is because the image is not yet cached)
Has anyone implemented something similar or have a suggestion?
Much appreciated.
jQuery Cycle is an amazingly versatile, light-weight, jQuery plugin.
http://jquery.malsup.com/cycle/

How to use full-page background image leaving space for binding?

In Latex how can you make the background image to occupy the whole sheet on every page except a certain stripe on the inner side of each page? I can't figure it out.
I have a background image I'd like to be seen in whole on each page after printing/binding.
Matyi
There's some rather scary LaTeX hackery involving putting a picture environment under every page and using \includegraphics to put an image into that environment. You'll have to adjust the size of the image using the width option, and if you want even and odd pages you'll have to check the page number to know whether to shift the image right or left by changing \put(0,0) to \put(3,0) for example.
For page number testing try something on the order of
\ifodd\count0 ...stuff for odd-numbered pages ...
\else ... stuff for even-numbered pages ...
\fi
This isn't really a full answer but will be enough to get you started.
Honestly, I'd just add the white space in the image :)
Well, I was thinking of something like this.
Is this really so rare need to have? I myself need such a thing for the first time now but I don't feel it a so big oddity. It's strange for me that if you want a background to change over even and odd pages, just like normal text do, you need to feel betraying Latex logics. Or maybe I'm too fanatic of this challenge of mine and I want to feel the whole tex world change to fulfill my wishes. :)
Thank you for the answers!

Resources