yeah like my class takes values and does some calculations on them. Ive done something similar in c# before using nunit which has built in assert methods so I could do something like......
Type: Posts; User: java_novice
yeah like my class takes values and does some calculations on them. Ive done something similar in c# before using nunit which has built in assert methods so I could do something like......
Is there no automated test suites that can be run easily against Java classes to say for example, check output is correct with certain inputs?
what do you use to unit test your classes?
I have a java program written and want to write at least one test for each class. What would you recommend for using to unit test java classes?
thanks
Problem solved, thanks
The nFFT and nFFT2 are the number of fft points eg in a 256x256 image, nFFT=256 and nFFT2=158.
I have the following code which can be used on a 2d array of pixel values to do the fft and get the magnitude of the image. I wonder can anyone translate this code to its Java equivalent:
...
It can be repositioned ok, the original code i posted which I think is the one your looking at (the one with my changes) can also be repositioned slightly but it is very temperamental. What I wanted...
Its giving strange resizes using that method because I'm trying to add an x coordinate to a width or height etc. Theres bound to be a better way of doing it, as with the code your looking at it has...
Sorry I edited that comment to just contain the original code, its the 'clip' I am wanting to resize
just the rectangle....heres my code atm, moving the rectangle about works fine but i need to be able to resize it
public class Cropping extends JPanel
{
BufferedImage image;
...
Hi, my program opens a rectangle on a jframe and I want to make the rectangle resizable by the user. Anyone any idea how to do this? Thanks
Thanks for the buffered image link, but with regard the imaginary parts of the image is this not specific to the image each time? As I'm going to be comparing the images to find out who's in the...
ps i am using the fft to then get the magnitude of the images so i can compare them
Yeah the tutorials assume you have the real and imaginary part of the image, whereas I just have one 2d array of the pixel values.
Also, a quick question though its somewhat off the java topic, if...
Hi guys, I'm relatively new to java and to image processing and I'm hoping someone on here can help me with the problem I'm having.
What I've done so far is make a simple application which opens...