User Profile
Collapse
-
Hah, the images are CTs for my masters work. Mind in the gutter I say!... -
shameless bump
It would be quite helpful to find out this answer.
JPLeave a comment:
-
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... -
Thanks I just did a bunch of for loops with catenations afterwards to do it.
JPLeave 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?
JPLeave 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>... -
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... -
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",...Leave a comment:
-
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?
JPLeave a comment:
-
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",... -
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... -
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... -
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)
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,
JPLeave a comment:
-
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,
-
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,
JPLeave a comment:
-
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.... -
Thanks for the reply,
I'll look around for the mouse coordinate stuff.
JPLeave a comment:
-
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... -
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
Leave a comment:
No activity results to display
Show More
Leave a comment: