comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » adding subset image into larger one
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
adding subset image into larger one [message #70184] Tue, 23 March 2010 08:00 Go to previous message
Suguru Amakubo is currently offline  Suguru Amakubo
Messages: 24
Registered: March 2010
Junior Member
Hi I am currently trying to add a subset of image (30x30) into a
larger image (400x400) in 2 different sinarios:

1) adding a 30x30 subset taken from a 400x400 image and adding it to
another 400x400 image.

and

2) adding a 30x30 subset image into a blank 400x400 image

I have encountered problems in both cases. for case 1) I could not
find anywhere the syntax of adding the subset into the correct
position. I used:

new_image = new_image[tr_point(0,a):tr_point(0,a)
+L-1,tr_point(1,a):tr_point(1,a)+L-1] + temp_image

where tr_point is an array that contains the coordinates of the
subset to be added and L = 30, temp_image is the subset. But seems
like the new image does not change.

for 2) aside from the problem I have above when I run the code above
with the blank image IDL seems to 'crop' the blank 400x400 image into
a 30x30 image...

Would anybody have a solution to this?

Thank you in advance

Suguru
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: overlaying wind vectors on a map
Next Topic: histogram

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Fri Oct 10 06:32:52 PDT 2025

Total time taken to generate the page: 1.74266 seconds