NI Home
Cart Cart | Help
Hello Events Academic NI Developer Zone Support Solutions Products & Services Contact NI MyNI
You are here: 
NI Home > NI Developer Zone > NI Discussion Forums


Reply
Member Gyc
Member
Gyc
Posts: 20
0 Kudos

combine/join images

Hi. I want to acquire images from inside a tube. The tube spins and moves so that the camera goes inside and takes pictures in a spiral movement. I have the position of the tube (angle, linear position). How can I recompose the pictures into a larger picture of the tube internal surface, with X coordinate from 0..360 and Y coordinate from 0..Ymax? Any suggestions appreciated. thanks
Active Participant
Silver_Shaper
Posts: 334
0 Kudos

Re: combine/join images

[ Edited ]

Hi Gyc..

 

Do you want to do Mosaic Image. If so this can be done by converting your pixels intensities in 2D Array (IMAQ Image to Array) and perform the array manipulation (Not applicable for RGB image).

Sasi.
Certified LabVIEW Associate Developer
If you can DREAM it, You can DO it - Walt Disney
Trusted Enthusiast
BruceAmmons
Posts: 2,289
0 Kudos

Re: combine/join images

The quick and dirty method is to create a new image and set the size to the full image (0..360, 0..Ymax).  I would also fill it with a solid color, either black or white.  For each image you capture, figure out the upper left corner and use Image to Image to paste it into the large image.  You will need to figure out how to do the wrapping going from 360 to 0.  Once you are done, you should have a collage that includes all your images.

 

The problem with this method is the overlapping edges and the distortion.  The pixels at the edges will not match up exactly due to distortion and perspective.  The ideal solution would be to gradually fade from one image to the other so there is no edge.  Also stretching and adjusting images to fix the distortion and perspective issues.  It really depends how accurate you need the final image to be.

 

Bruce

Bruce Ammons
Ammons Engineering
Member Gyc
Member
Gyc
Posts: 20
0 Kudos

Re: combine/join images

[ Edited ]

Thanks, Bruce, for the suggestions.

I hoped that, by now, there would be some "tools" to do what I need.

 

Where and how is camera calibration data stored?

I'll have position data (corresponding to piexl (0,0)), and I'll have to figure out where in "big picture" it will land.

I gues I'll have a bit of coding to do.

 

Member Gyc
Member
Gyc
Posts: 20
0 Kudos

Re: combine/join images

Thanks, precisely what Bruce also suggested.

I'll be using good old b/w images, no color. :smileyhappy:

 

By using this web site, you accept the Terms of Use for this web site. Please read these Terms of Use carefully before using any part of this site. Please go here for information on ni.com's copyright infringement policy.
My Profile | Privacy | Legal | Contact NI © 2011 National Instruments Corporation. All rights reserved.    |    E-Mail this Page E-Mail this Page