LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Image processing from .txt file onto an intensity graph

I am doing a mini project in my class and I was wondering if anyone could help me. It about image processing but I am bit stuck.

Heres the idea:

"An image is really nothing more than a 2D array of data. The value of every element in the array corresponds to the brightness of the image at that point.
In this project you will create a VI which loads a 2D array of data and then displays it on the screen using the Intensity Graph. Three example files (boats.txt, gordon.txt and parrot.txt) are available on the module webpage that you can use. However, you can also use any other black and white image you like, but will need to convert it to a “text image” first. To do this you can use some software called “ImageJ” which is available on the computers and is free to download.
You can vary the brightness of an image by adding the same value to every element in the array.
The contrast of an image is adjusted by multiplying every element in the array by the same value. Using numerical controls and simple array mathematics, you should adjust the brightness and contrast of your displayed image.
Some other ideas that you could try with image manipulation are:
o Invert an image (change black to white and white to black)"

 

First I am having problems putting my picture onto the graph. It is in the write file but the colours are not correct and the image has rotated 90 degrees. I will upload my VI so far when I get back onto my computer.

 

Would really appricate the help! Thank you for reading 🙂

0 Kudos
Message 1 of 3
(3,041 Views)

If you are working on a Class Project, talk to your fellow students.  Working together as a team is an excellent way to learn and teach -- you collectively brainstorm, someone tries a bit of code, says "Hey, look at this ...", you all try it, figure out what's going on, and pretty soon you are all becoming experts.

 

So here's what should be an easy question -- what could cause an image to be rotated 90 degrees?  [I wonder -- is it rotated 90 degrees, or is it flipped around the upper-left/lower-right diagonal?  I'd wager a dime it is the latter ...].

 

Bob Schor

0 Kudos
Message 2 of 3
(3,009 Views)

Hi charlthedancer,

 

Here is an example to get you started.

 

Kind regards,

GajanS

0 Kudos
Message 3 of 3
(2,978 Views)