Hi,
i have a 672*472*3 size array of type double(r-g-b channels of an image). the values at each pixel position range from 0.000 to 5.0000.
i need to show the data as an image on a picturebox. how can i do this in c#.
...
Here is my Processing code. If someone can show me how to add either a Delay or ADSR filter (or both) to it's output that would be great.
Minim minim;
import ddf.minim.*;
import ddf.minim.signals.*;
import ddf.minim.ugens.*;
AudioOutput out_1;
Delay myDelay1;
SineWave sine_1;
float freq_1 = 82;
void setup()
{
minim = new Minim(th...
I'm having trouble with some objects in processing.
the code should have two objects displayed and moving. but i only see one object displayed and moving. maybe there's something i'm missing. check out the code.
Rule myRule;
Rule myRule1;
void setup() {
size(200,200);
smooth();
//Initialize rule objects
myRule = new Rule(0,100...
I understand that y = x ^ n would be float y = (x, n)
but what if i wanted to draw the curves
y = 1 - x ^ 4
y = (1-x) ^ 4
y = 1-(1-x) ^ 4
Here's the code i wrote but it doesn't draw the curve mathematically correct for
y = 1 - x ^ 4
for (int x = 0; x < 100; x++) {
float n = norm(x, 0.0, 100.0);
float y = pow(1-n, 4);
y *= 100;...
I'm putting together a swing gui, in Jython, and wish to use a processing PApplet.
So I do something like
from processing.core import *
class ProcessingApp(PApplet):
def __init__(self):
PApplet.__init__(self)
#...
def setup(self):
#...
def draw(self):
#...
and then later on in the module,...
I'm trying to process a post by a third party server (Paypal) processed by my server through a WCF (.Net 3.5 SP1) service. All I need is to get and process the values with the query string. This sounds incredibly easy, but after a weekend, I'm still stumped. Any help would be greatly appreciated.
Passing the following URL from my brows...
Log("Starting to compile...\n");
Process p = new Process();
p.StartInfo.FileName = CompilationCommand;
p.StartInfo.Arguments = SourceFileName;
p.Start();
Log("Compiling finished in " + (p.StartTime - p.ExitTime).Seconds + " seconds\n");
This code doesn't work. How can I find out how much time wa...
I jumped into Processing (the language) today. I've been trying to implement a line without the line() function. In other words, I'm trying to replicate the line() function with my own code. I'm almost there, but not. (There's a screen, and you can click around, and this function connects those clicks with lines.)
There are four differe...
I posted something similar yesterday, but got nothing. I spent a few hours today problem-solving, but didn't progress any.
I'm using Processing (the language) and trying to implement a method that draws a line between two points. (I don't want to use the library's line() method.)
My lineCreate method works great for positive slopes, bu...
I've found this really cool site on interfacing an Arduino to an optical mouse to read out x-y readings from it. I've done it, and it's working nicely.
Then I was thinking, 'Why not plot all this to become a graph?' and I came across Processing.
I am aware that Processing has an example named 'MouseSignal'
This example is the EXACT th...
Dear All,
We have an email template which needs to be processed using Java. We have to replace the variables in the template with actual values. We were able to achieve this using pattern matching , ie; by searching the template for particular patters and replace them with actual values.
Now we need have conditions in the XML file.For ex...
I need to extract data from non delimited text files using C#. Basically, I need to remove all unwanted character then mark the end of a line and add a line break. Once the data has been separated into individual lines I need to loop through each line in turn and extract values using Regular Expressions. I have been doing this with Perl ...
Hi all,
I stumbled across this youtube video here http://www.youtube.com/watch?v=Ha5LficiSJM that demonstrates someone doing color detection using the AForge.NET framework. I'd like to duplicate what that author has done but I'm not sure how to do some image processing.
It would appear that the AForge.NET framework allows you to pull d...
Please can anyone tell me a method to read header of multiple dicom(mri) images
and store them in a structure
i really need to do this in my project
...
////////
UPDATE: Christ! I had another look at the program, to see if I was being silly. And indeed I am. The error was in fact not a divide by zero error but 'ArrayIndexOutOfBoundsException:0' This is because because damageTaken is actually an array of values that stores many different 'damages'. So the equation I have is probably corr...
Hi,
I was wondering what would be the best approach to split up array processing using multiple queued functions into small time chunks?
So say I have an multi dimensional array, and I want to run a function(s) over it, but only in small timed chunks, say 500ms each time I trigger the processing to occur.
What would be the best approa...
OK, there are many HTML/XML parsers for Java. What I want to do is a bit more than just knowing how to parse it. I want to filter the content and have it in suitable form.
More precisely, I want to keep only the text and images. However, I want to preserve some of the text formatting, too, like: italic, bold, alignment, etc.
All this i...
I had a 'procedure A' in which it has to return a null cursor to front end and then immediately it should continue with the next step in which it will call a procedure which will take 20 min to complete the proc.
Procedure A(cur_out refcursor)
begin
OPEN cur_out for
select
null empname,
null empid
from dual;
procedure B();//Wil...
Hi All,
I would like to build my own signal processing library, and possibly another one about graphs algorithm. I find C# very useful and robust in regards of possible bugs associated with memory allocation, pointers, threading etc...
But I was wondering how much am I going to lose in terms of performance. Is it going to be something a...
I am trying to rotate vectors using matrices, but got confused.
I thought all I needed to do is create a rotation matrix and multiply it to a vector to get the rotated vector.
Here you can see a simple test I've done using Processing:
Use a to increment rotation, and x/y/z to changes the axis.
And here is source:
PVector[] clone,f...