Re: Scale a vector



Whether the data you posted are real or not, it would still be useful
to have an example of data that reflect the complete algorithm you're
looking for. So far, all you've shown is a hypothetical input array;
without seeing a corresponding hypothetical output array, it's very
difficult to visualize what exactly you're trying to do.

Mmm, it's hard for me to explain in a post what I need.

The algorithm that I've to develop simply create an array of Z elements
from an array of T elements, preserving the curve morphology.

I obtain the array processing an image.

I calculate the horizontal RGB projection and I need to scale
it to a fixed size array. The originally array size is the width of the image.

I need to compare the RGB project of an image to another, but the resolution
of images can be different, so I've to build fixed array size, to compare.

Clear now?

Thx!!!
Matteo Migliore.

.



Relevant Pages

  • Re: regex question - trying to find ".mp3" in a SELECT box
    ... But `Array' is a Function object reference. ... Establish a new execution context using F's FormalParameterList, ... Since is not a primitive value, the exception should be thrown. ... | 5.2 Algorithm Conventions ...
    (comp.lang.javascript)
  • Re: Mergesort Vs Quicksort
    ... I might not have correctly remembered my algorithm of months ago ... for sorting records in an array using one auxilary of the ... on how things turn out from lower levels of recursion, ... whether the number of records in the array segment to be sorted is ...
    (comp.programming)
  • Re: Reference to derived type element by index?
    ... as a set of distinctively-named scalars. ... In another scope, the same common block ... would be a single array. ... algorithm and a specific application of the algorithm, ...
    (comp.lang.fortran)
  • [SUMMARY] Maximum Sub-Array (#131)
    ... # sum the integer values of array contents ... algorithm, ... all possible lengths, to check each subarray. ... $ time ruby -r max_sub_array ...
    (comp.lang.ruby)
  • Re: counting subsets of S so that sum(S_n) = N
    ... and make my algorithm generate only unique subsets? ... and the array of boolean at one step of the algorithm is ... implementation without needing recursion. ... subsequence in W, process it and return. ...
    (comp.programming)

Loading