help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Migrating from 3.6.4 to 3.8.0


From: ijourneaux
Subject: Re: Migrating from 3.6.4 to 3.8.0
Date: Sun, 16 Feb 2014 18:10:56 -0800 (PST)

Ok
I have done a little more digging into this.

If I cast the array going in a uint8, then the array returned in uint8. As
Carnë pointed out that is the correct behavior. 
As I step though imresize into imremap, there are 2 working arrays X and Y
that are doubles and have the same dimensions are the ingoing image.

function ZI = graybicubic (Z, XI, YI, extrapval = NA)
  
  ## Allocate output
  [X, Y] = meshgrid(1:columns(Z), 1:rows(Z));

This allocation is successful

Just a little further down in imremap in the routine  sym_sub2ind(sz, Y, X)
I run out of memory on the line

  X(X<1) = 1 - X(X<1);

A couple of questions come to mind
1. Should the call to meshgrid cast the arrays to be the same as incoming
array?
2. Is memory allocation handled differently between 3.2.4 and 3.8.0






--
View this message in context: 
http://octave.1599824.n4.nabble.com/Migrating-from-3-6-4-to-3-8-0-tp4661903p4661966.html
Sent from the Octave - General mailing list archive at Nabble.com.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]