Hello,
I have a simple python program where I am comparing two log files and I am
storing the differences in a list. I am programming in python after a long
time so may be I might have not written something very efficient. Please
let me know what alternate solution I can apply for my program.
I a
??
thanks,
--
Varsha Purohit
___
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor
them and
multiply the cumulative result with cellsize
On Sun, Mar 9, 2008 at 6:41 PM, Kent Johnson <[EMAIL PROTECTED]> wrote:
> Varsha Purohit wrote:
> > Hello All,
> > I had posted this question in this community. I have a trouble.
> > Actually
king can anyone tell me what i am doing wrong
here ???
On Mon, Mar 3, 2008 at 12:55 PM, Kent Johnson <[EMAIL PROTECTED]> wrote:
> Varsha Purohit wrote:
> > Yeahh so by doing this i am counting only the difference part since we
> > have grayscaled the image and assuming
number of
pixels developed like that... sounds interesting .. thanks for throwing
light for me in right direction
On Sun, Mar 2, 2008 at 4:45 PM, Kent Johnson <[EMAIL PROTECTED]> wrote:
> Varsha Purohit wrote:
> > I am getting this list as an output
> >
> > [268541.0, 2
xels
...
thanks,
On Sun, Mar 2, 2008 at 9:48 AM, Varsha Purohit <[EMAIL PROTECTED]>
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..
>
>
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
etween two images, getting sum of all pixels
and area of pixels that are in that image etc.
please guide me regarding this...
thanks,
--
Varsha Purohit,
Graduate Student
___
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor
, Feb 25, 2008 at 6:52 PM, Kent Johnson <[EMAIL PROTECTED]> wrote:
> Varsha Purohit wrote:
> > Hello all,
> >In my application i have to create a list of tuples. I have a for
> > loop which will create (x,y) tuple each time it iterates, and i ahve to
> >
Hello all,
In my application i have to create a list of tuples. I have a for
loop which will create (x,y) tuple each time it iterates, and i ahve to
store each tuple in a list like
list1= [(x1,y1), (x2,y2).]
any ideas how to do that ???
thanks,
--
Varsha Purohit,
Graduate Student
):
GuiScript().Stop()
RunScript().Stop()
self.Destroy()
but seems stop() method is not existing... can anybody guide me pl
thanks,
--
Varsha Purohit,
Graduate Student
___
Tutor maillist - Tutor@python.org
http://mail.python.org
Hello All,
I wanted to know what are the advantages and disadvantages of using
pIL instead of matlab software to deal to image processing.
thanks,
--
Varsha Purohit,
Graduate Student
___
Tutor maillist - Tutor@python.org
http
i save the enhanced image... or alternatively when i am comparing two
images using imagechops i am getting a black back ground... how should i
make it little brighter or use another colour instead of black ???
--
Varsha Purohit,
Graduate Student
___
Tut
pg"
file2 = "Bilinear.jpg"
diff = ImageChops.difference(file1, file2)
ext = ".jpg"
diff.save("diff" + ext, "JPEG", quality =100)
--
Varsha Purohit,
Graduate Student
___
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor
lease anybody suggest me how should i go ahead and solve this
problem ??
--
Varsha Purohit,
Graduate Student
___
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor
,
--
Varsha Purohit,
Graduate Student
___
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor
i need to pass
linking options of python to the c compiler... but wat are those options :(
??
On Jan 20, 2008 7:16 AM, Alan Gauld <[EMAIL PROTECTED]> wrote:
>
> "Varsha Purohit" <[EMAIL PROTECTED]> wrote
>
> > I just read about how to call python from a c p
I got the python.h file but i am getting linking errors for my program
On Jan 20, 2008 1:18 AM, Varsha Purohit <[EMAIL PROTECTED]> wrote:
> Hi,
>I just read about how to call python from a c program. This is the
> function for that
>
> int main()
>
here can i get this header file ?? And how can i call the python
interpreter screen from c program ??
--
Varsha Purohit,
Graduate Student
___
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor
Hello All,
Does python has concept of pointers like c/cpp ?? If yes how.. can
anyone give me a small example to how we can use pointers in python.
thanks,
--
Varsha Purohit,
Graduate Student
___
Tutor maillist - Tutor@python.org
http
n't matter much what they ask, since you
> have the level of Python knowledge that you claimed.
>
> Remco Gerlich
>
> On Jan 19, 2008 3:09 AM, Varsha Purohit < [EMAIL PROTECTED]> wrote:
>
> > Hello All,
> >I have an interview in python program de
Hello All,
I have an interview in python program development. Can i know some
interview questions in python ? If you know any website where i can refer
that would be helpful.
thanks,
--
Varsha Purohit,
Graduate Student
___
Tutor maillist
Hello All,
I have an interview in python program development. Can i know some
interview questions in python ? If you know any website where i can refer
that would be helpful.
thanks,
--
Varsha Purohit,
Graduate Student
___
Tutor maillist
funciton in PIL which will help
me to calculate the differences between two different JPEG images.
--
Varsha Purohit,
Graduate Student
___
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor
ment a slider which will zoom in and out
the image accordingly..
-
Varsha
On Jan 9, 2008 12:11 PM, Alan Gauld <[EMAIL PROTECTED]> wrote:
>
> "Varsha Purohit" <[EMAIL PROTECTED]> wrote
>
> > I want to implement zoom in and zoom out functions using wxpython
&g
on the image panel
it shd accordingly zoomin or zoom out. Or may be once user selects an area
inside the image where he wants to zoom in and see. Lemme know if anybody
came across this kind of implementation.
Any help is appreciated.
--
Varsha Purohit,
Graduate Student
im1.resize ((width,height), Image.BICUBIC)
#images get saved in c drive with jpg extensions
ext = ".jpg"
im2.save("C:/nearest" + ext)
im3.save("C:/Bicubic" + ext)
print "files are saved"
--
Varsha Purohit,
Graduate Student
__
image file name
to the readfile and it should call imagetobit function of the gui script and
display the passed imagefile name. I am getting runtime errors
thanks
--
Varsha Purohit,
Graduate Student
from readfile import MainWindow
import os
class funct:
def func_call(self
image
has been created and it should load the image ?
On Dec 2, 2007 4:29 PM, Varsha Purohit <[EMAIL PROTECTED]> wrote:
> hello everyone,
> i made a small applicatin where i need to display an image on a
> panel. and then when i press the read button it should read anot
hello everyone,
i made a small applicatin where i need to display an image on a
panel. and then when i press the read button it should read another image
and display it on the same panel. Its working but i have to press the read
button two times then only its working
import wx
import o
otherwise i get like 25lines of some stupid
error messages having no link to the program. I have to close all python
programs again !!! Does anybody now why i am getting this
thanks,
--
Varsha Purohit
___
Tutor maillist - Tutor@pytho
:03 AM, Alan Gauld <[EMAIL PROTECTED]> wrote:
>
> "Varsha Purohit" <[EMAIL PROTECTED]> wrote
>
> I note that you got it wotking but just to clarify...
>
> >I am actually calling the binding function and then writing it
> > into the text value...
olledWindow(None, -1, 'Aliens')
app.MainLoop()
On Nov 17, 2007 12:44 PM, Varsha Purohit <[EMAIL PROTECTED]> wrote:
> Hello Everyone,
> In my application i need to select a file using open dialog
> box. And then i dont need to open the file. I just need to display t
.WriteText(Fname)
f.close()
dlg.Destroy()
return Fname
app = wx.App()
ScrolledWindow(None, -1, 'Aliens')
app.MainLoop()
I donno the alternative to this now... :(
On Nov 17, 2007 3:35 PM, Alan Gauld <[EMAIL PROTECTED]> wrote:
>
> "Varsha Purohit&qu
rname=dlg.GetDirectory()
dlg.Destroy()
app = wx.App()
ScrolledWindow(None, -1, 'Aliens')
app.MainLoop()
Any help is appreciated
thanks,
--
Varsha Purohit,
Graduate Student
___
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor
application runs...
thanks in advance,
--
Varsha Purohit,
___
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor
in the static text box???
thanks,
--
Varsha Purohit,
Graduate Student
___
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor
Thanks for the help its working now !!!
On Nov 13, 2007 7:34 PM, Kent Johnson <[EMAIL PROTECTED]> wrote:
> Varsha Purohit wrote:
> > Hello,
> > I have an application where i need to run a python script from
> > wxpython gui. I am calling the script from the butt
Hello,
I have an application where i need to run a python script from
wxpython gui. I am calling the script from the button click event. And
the moment button is pressed the python script should be executed.
thanks,
Varsha Purohit,
Graduate Student
<[EMAIL PROTECTED]> wrote:
>
> "Varsha Purohit" <[EMAIL PROTECTED]> wrote
>
> > In one application i want to convert format of ascii file to
> > binary file.
>
> That depends entirely on what the ASCII file contains.
> Is it a comma separa
Hello All,
In one application i want to convert format of ascii file to
binary file. And using that binary file in a function of PIL i can
convert it to an image file. So i wanted to know how to convert the
file format in python... is it possible by Numpy ?? And is there any
other alternativ
Hello everyone,
I wanted to know what are the differences between perl and
python, since both of them are scripting languages...
thanks
--
Varsha,
___
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor
oops.. i wanted to ask about frombuffer which is in image library of PIL. I
read the documentation but wanted a small sample program to understand its
function...
On 10/13/07, Varsha Purohit <[EMAIL PROTECTED]> wrote:
>
> Hello all,
> I need some help in using formbuffer
Hello all,
I need some help in using formbuffer function in PIL. Does anybody
have sample program related to this ?
thanks,
--
Varsha
___
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor
words of what i
wanna do :(
thanks,
Varsha
On 10/1/07, Alan Gauld <[EMAIL PROTECTED]> wrote:
>
> "Varsha Purohit" <[EMAIL PROTECTED]> wrote
>
> > I want to create a wxpython program where i am reading a list
> > having
> > integer values
bitmap
image in pixels. But i am not getting proper implementation of this function
on net...
thanks,,
Varsha
On 9/30/07, Varsha Purohit <[EMAIL PROTECTED]> wrote:
>
> Hello All,
>
> I want to create a wxpython program where i am reading a list having
> integer values like [1,
proper
coordinates by matching values of the array. I need to make a script file
for arcgis tool which converts the ascii data to a coloured bitmap image at
given coordinates.
thanks,
--
Varsha Purohit,
Graduate Student,
San Diego State University
-
9 3 7 3
8 3 2 7
3 2 1 3
3 7 3 2
it has predefined rows and colns... i know similar program in simple python
but wanna figure out how to do that in wxpython...
thanks,
Varsha
On 9/27/07, Kent Johnson <[EMAIL PROTECTED]> wrote:
>
> Varsha Purohit wrote:
> > Hello everyone,
&
Hello everyone,
I need a basic tutorial which can help me in reading or writing ascii
grid file
thanks in advance,
--
Varsha Purohit,
Graduate Student,
___
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor
Hello friends,
I wanted a link or tutorial to help me understand how to read or write
ascii text file in python. with and without using Numpy. If you have any
example that would also help me understand better.
thanks,
Varsha Purohit,
Graduate Student
instance... what should i do ??
--
Varsha Purohit,
___
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor
Thanks guys it was really helpful i m just a beginner in python start
to program since two days back. So finding little difficulty with some
concepts.
On 9/2/07, Ricardo Aráoz <[EMAIL PROTECTED]> wrote:
>
> Varsha Purohit wrote:
> > Hello,
> > i have again very
)
5
>>> print line.rfind("varsha")
8
>>> print line.index("varsha")
8
what does 2 in first line signifies... and why rfind gave 5 as an output...
can anybody pls explain me what exactly is interpreter tryin to return.
--
Varsha Purohit,
___
, Alan Gauld <[EMAIL PROTECTED]> wrote:
>
>
> "Varsha Purohit" <[EMAIL PROTECTED]> wrote
>
> > grid = [[1,1,2,7,6,9],\
> > [,9,1,1,1,9,1],\
> > [8,1,2,0,0,4],\
> > [1,4,1,1,8,5]]
>
> You don't need the
Hello,
Suppose i have a 2D list(grid) like
grid = [[1,1,2,7,6,9],\
[,9,1,1,1,9,1],\
[8,1,2,0,0,4],\
[1,4,1,1,8,5]]
how can i access to all the elements of the list from column no. 5.
output should be like [6,9,0,8]...
thanks,-
Varsha Purohit
Hello,
Suppose i have a 2D list(grid) like
grid = [[1,1,2,7,6,9],\
[,9,1,1,1,9,1],\
[8,1,2,0,0,4],\
[1,4,1,1,8,5]]
how can i access to all the elements of the list from column no. 5.
output should be like [6,9,0,8]...
thanks,-
Varsha Purohit
56 matches
Mail list logo