Varsha Purohit wrote:
> I donno which approach i should follow.
> should i multiply each pixel with cellsize or first i add up all of them
> and multiply the cumulative result with cellsize
If you 'multiply' by assigning a different value in clip() then it
probably doesn't matter
You both were right... i type casted it to int and it works with
this..Thanks for catching the error !!!. but i had a question.. i want to
find area of all the cells which i obtained by using
imagechops.difference so should i multiply each cell with cellsize or
should i add all the cells and mu
On Monday 10 March 2008 01:53, Varsha Purohit wrote:
> # read the ascii file
> hdr = read_ascii.header(inFile)
> temp= hdr[4].strip().split() # temp is a list which is
> ['cellsize', '127']
> cellsize = temp[1]
"cellsize" is a character string I think! You must convert it to a
number
Varsha Purohit wrote:
> Hello All,
> I had posted this question in this community. I have a trouble.
> Actually in my application i need to multiply the resultant value i am
> getting with a cellsize. I am getting this cellsize by reading an ascii
> file's header. But when i am trying to
Hello All,
I had posted this question in this community. I have a trouble.
Actually in my application i need to multiply the resultant value i am
getting with a cellsize. I am getting this cellsize by reading an ascii
file's header. But when i am trying to multiply it with the result of
ima
Varsha Purohit wrote:
> Yeahh so by doing this i am counting only the difference part since we
> have grayscaled the image and assuming it will count only the pixels
> that evolve as difference
Yes
> if i use sum2 instead of sum i think it
> will give squared sum which is area... and if
Yeahh so by doing this i am counting only the difference part since we have
grayscaled the image and assuming it will count only the pixels that evolve
as difference if i use sum2 instead of sum i think it will give squared
sum which is area... and if i just use count it would count the number
Varsha Purohit wrote:
> I am getting this list as an output
>
> [268541.0, 264014.0, 324155.0]
This is the sum of the values of the red pixels, etc. They are not
counts, but sums. So if you have an image with the two pixels
(1, 2, 3), (4, 5, 6) you would get a sum of (5, 7, 9).
>
> Actually in
I am getting this list as an output
[268541.0, 264014.0, 324155.0]
Actually in my code i am finding difference between two images and i need to
count the number of pixels which appear as a difference of these two images.
These values i m getting as output are little large.
i m pasting my code ag
Varsha Purohit wrote:
> Yes i am getting this but i was confused why i am getting 3 values for
> count, extrema.. and dats y i couldn't figure out how to find area of
> those pixels..
From the docs: "The following attributes contain a sequence with one
element for each layer in the image.
Yes i am getting this but i was confused why i am getting 3 values for
count, extrema.. and dats y i couldn't figure out how to find area of those
pixels..
On Sun, Mar 2, 2008 at 9:02 AM, Kent Johnson <[EMAIL PROTECTED]> wrote:
> Varsha Purohit wrote:
> > of this module in this application.
>
Varsha Purohit wrote:
> of this module in this application.
>
> I want to find other image statistics such as finding number of pixels
> which exist after taking difference between two images, getting sum of
> all pixels and area of pixels that are in that image etc.
I don't think you can get a
Hello All,
i have an application where i am comparing two images and highlighting
the difference part in a separate image. I am using ImageChops subtract
method. Here is the code:
file1=Image.open("./pics/original.jpg")
file2=Image.open(val)
diff = ImageChops.subtract(file1,f
13 matches
Mail list logo