User Profile

Collapse

Profile Sidebar

Collapse
Nebulism
Nebulism
Last Activity: Dec 19 '07, 04:34 PM
Joined: Jun 1 '07
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • Nebulism
    replied to Tkinter image and scrollbar question
    Hah, the images are CTs for my masters work. Mind in the gutter I say!...
    See more | Go to post

    Leave a comment:


  • Nebulism
    replied to Tkinter image and scrollbar question
    shameless bump

    It would be quite helpful to find out this answer.

    JP
    See more | Go to post

    Leave a comment:


  • Nebulism
    started a topic Tkinter image and scrollbar question

    Tkinter image and scrollbar question

    Hi everyone,

    I am working on a module for my GUI that shows one image with an index value below and would use a scrollbar to control which of the images are displayed. The images are stored in a successive folder in the format Pic#, i,e. Pic1, Pic2 etc.

    What I want to do is make a slider that is attached to a label which would output the slide number that is being looked at. I would use that number then to return the...
    See more | Go to post

  • Thanks I just did a bunch of for loops with catenations afterwards to do it.

    JP
    See more | Go to post

    Leave a comment:


  • Thanks bud, do you know of any equivalent for intra string return such as

    string="abcdef"
    and
    in python it would be
    string[0:3] returns abc, is their any easy way to do that?

    JP
    See more | Go to post

    Leave a comment:


  • C question:Adding a character (from a string) to a string, cat problem

    Hi guys,

    I am working on a parser in C and have hit a wall. I created it in python earlier and it works so now I'm porting it over to C. Of course that wall is string processing!

    Anyways here is my issue of syntax.

    Consider this simple program.

    #include <stdio.h>
    #include <math.h>
    #include <stdlib.h>
    #include <ctype.h>
    #include <stdbool.h>...
    See more | Go to post

  • Nebulism
    started a topic Tkinter and Persistent GUI

    Tkinter and Persistent GUI

    Hey everyone,

    I have a decent amount of experience programming in Python and using Tkinter to this point including the usage of many different widgets and events. I have the need to create a GUI now with a persistent environment (as in it looks like a regular windows program with the x, box, and _ in the upper right hand corner. I then will have to create a file drop down menu and so on.

    My question is are there any...
    See more | Go to post

  • Nebulism
    replied to PIL Decoder mode vs raw mode arguemts
    I have tried reorganizing the inputs to the function, however it is still failing.

    Is there a specific library i might need to use?

    img2=Image.from string("L",(512 ,512), buffed, "raw", "F;16")

    Traceback (most recent call last):
    File "<pyshell#2 6>", line 1, in <module>
    img2=Image.from string("L",(512 ,512), buffed, "raw",...
    See more | Go to post

    Leave a comment:


  • Nebulism
    replied to PIL Decoder mode vs raw mode arguemts
    I have been looking at that and if you notice the function that I call includes the little endian floating point 16 bit int "F;16". Some reason it does not recognize the decoder (look at the error text included in the original post)? I was wondering if it was a syntax issue. Any ideas?

    JP
    See more | Go to post

    Leave a comment:


  • Nebulism
    started a topic PIL Decoder mode vs raw mode arguemts

    PIL Decoder mode vs raw mode arguemts

    Hey everyone,

    I am currently creating images pixel by pixel. This is too slow for many images. Anyways, I want to use the fromstring module in the Image library. I have read at this url, http://effbot.org/imagingbook/decoder.htm, that I use an unsigned little endian 16 bit decoder in the calling of the function.

    My segment that is called looks like this:

    img2=Image.from string("L",(512 ,512),dummystri ng2,"raw",...
    See more | Go to post

  • Nebulism
    started a topic 16 bit unsigned little endian reading issue

    16 bit unsigned little endian reading issue

    Hi everyone,

    I have been working with Python since this summer and I used to frequent this board for advice and tips. Well...I'm back!

    Anywho, I am reading in a file that is around 70 megs. It's a .img extension that contains quite a few CT slides. The way that a java based imaging program (ImageJ) reads it is a little unknown to me, but I know there is a header and the pictures follow.

    My question...
    See more | Go to post

  • Nebulism
    started a topic 3d python imaging tool?

    3d python imaging tool?

    Hey everyone,

    Currently my work is progressing smoothly. I have developed algorithms for selecting regions of interests in multiple slides and so forth.

    I am currently looking for a 2d--->3d renderer or some kind of package that I can use. Essentially I want to load selections of pixels from different slides and extrapolate them to create a full 3d composite. That composite can then be rotated etc. Does anyone...
    See more | Go to post

  • I solved the issue. I had to reference my class correctly.

    here is the fix:

    Code:
    from Tkinter import *
    import Tkinter
    import Image            #PIL
    import ImageTk          #PIL
    import sys
    import getopt
    trace = 0 
    
    class CanvasEventsDemo: 
        def __init__(self, parent=NONE):
            canvas = Canvas(win)
            canvas.pack(fill=BOTH)
    ...
    See more | Go to post

    Leave a comment:


  • Hey all,

    I implemented the raw string, however, the image will still not display on the canvas at all. It still remains as a white canvas bg with the mouse event functions. Any ideas, or can you try and get it to display an actual jpg, gif, etc image in the canvas to draw shapes over?

    Thanks,
    JP
    See more | Go to post

    Leave a comment:


  • Nebulism
    started a topic Question for loading images in a class/canvas

    Question for loading images in a class/canvas

    I have been attempting to utilize a draw command script that loads a canvas, and through certain mouse events, draws rectangles. The original code is from http://www.java2s.com/Code/Python/Ev...peoncanvas.htm .

    The code itself is:
    Code:
    from Tkinter import *
    trace = 0 
    
    class CanvasEventsDemo: 
        def __init__(self, parent=None):
            canvas = Canvas(width=300, height=300,
    ...
    See more | Go to post

  • Damn,

    Well thanks for the input bud, guess it's back to the drawing board. Let me know if you know of any rubber banding area selection scripts for tkinter.

    Thanks,

    JP
    See more | Go to post

    Leave a comment:


  • Nebulism
    started a topic Implementing a Rubber Banding Script Question.

    Implementing a Rubber Banding Script Question.

    Hi everyone!

    Earlier I asked a question about mouse interaction with a GUI. I have found a pretty comprehensive script that is supposed to work <mod edit: link removed, source inserted>:[CODE=python]# This class describes a generic method of drawing rubberbands
    # on a wxPython canvas object (wxStaticBitmap , wxPanel etc) when
    # the user presses the left mouse button and drags it over a rectangular
    # area....
    See more | Go to post
    Last edited by bartonc; Jun 21 '07, 04:55 PM. Reason: removed link.

  • Nebulism
    replied to Image Processing, Select Area with Mouse
    Thanks for the reply,

    I'll look around for the mouse coordinate stuff.

    JP
    See more | Go to post

    Leave a comment:


  • Nebulism
    started a topic Image Processing, Select Area with Mouse

    Image Processing, Select Area with Mouse

    Hey everyone,

    My project is nearing completion and I have one last segment to work upon. I have imported images at a certain resolution say 512x512. I essentially want to drag a box for region of interest selection with the mouse for each imported slide. Does anyone know of a past precedent that I can look to for help for this task (most specifically other modules other than PIL to use)?

    The most important parts...
    See more | Go to post
    Last edited by bartonc; Jun 18 '07, 04:31 AM. Reason: GUI toolkit reminder

  • Nebulism
    replied to Popen question with opening and closing
    Heres a code snippet for all of you gents and ladies. As always thanks for the help.

    Code:
    ########################
    #This snippet starts Xwin if it is not running, else wise it passes.
    #The main purpose is that Xwin crashes if multiple instances are opened.
    #Used Tim Golden's Cookbook as advice
    #######################
    from os import *
    from sys import *
    import subprocess
    from
    ...
    See more | Go to post

    Leave a comment:

No activity results to display
Show More
Working...