I'm getting a strange error with imtranslate that causes Octave to crash. Say 
you have a command

n = 63; im2 = imtranslate(im1, x(1:n), y(1:n));

When x and y are vectors, then im2 is an image of the same size as im1 but 
repeated "n" number of times, translated by various amounts. However, if the 
images are too large (156x156 and above), then if n is 64 or above, Octave 
crashes, producing this error:

"panic: Illegal instruction -- stopping myself...
 attempting to save variables to `octave-core'...
 panic: attempted clean up apparently failed -- aborting...
 Aborted"
 
If the images are 155x155 or less, then n can increase to around 20,000 or so, 
and you'll get a memory exhausted error and Octave will continue. (Haven't 
tried non-square images.) Here's some code:

L = 155;
im1 = uint8(zeros(L));
x = L*rand(20000,1);
y = L*rand(20000,1);
n = 63; im2 = imtranslate(im1,x(1:r),y(1:r));

I have Octave 3.2.4 and I run it in Ubuntu. 

(BTW, what I was trying to do was putting rings around a set of random points, 
and the easiest way I found to do that is to generate an image of the rings, 
translate it to the appropriate point, then add it to a background, repeating 
until all points have rings around them. If anyone knows of a more efficient 
way to do this, I'd appreciate it.)


John

------------------------------------------------------------------------------
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security 
threats, fraudulent activity, and more. Splunk takes this data and makes 
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2d-c2
_______________________________________________
Octave-dev mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/octave-dev

Reply via email to