Creating a colored cube from a three-dimensional array

Hey guys,
I'm working on this application which basically displays a 3-dimensional MRI representation of a brain as well as 2-dimensional slices of that representation. As of right now, this MRI data is being stored as gray-scale values in a 3-dimensional array. I've perused the Java3d tutorial and API but I'm not quite sure how I should go about doing this. I am new to using Java3D and so I was wondering if any of you more experienced guys could suggest what you believe is the most sensible as well as efficient method of going about doing this. I was thinking of treating each element in the array as a pixel and representing each pixel as a cube or some other geometric object but this seems highly inefficient and considerably difficult to work with in terms of allowing the user to manipulate (rotate, etc.) the object. I've looked into using geometry arrays but I'm not quite sure they are what I want. Any thoughts, even those such as "this is a stupid post, do more research, the answer is pretty obvious", would be greatly appreciated.

hi there,
i'm not sure if this will help.
I don't know how Java3D does things but anytime i've used or
seen grey scale(RAW)data being used, the source data
is copied into an API data container(e.g. Vertex Buffer) and then this data
is accessed by an index buffer. So, if i were you i would think about
looking at some Java3D data containers to copy your data into.
I don't know how you have structured your program but from what i have seen\know
the gray scale data is used as a height value to the other two
values(x, z). So for example, you have an image call it a mesh
this mesh has verticies(x,y,z). These verticies represent your image data.
The grayscale image data is the height of your y parameter.
very simplistic but hey this stuff is new to me.

Similar Messages

  • Does OBIEE has ability to create a single cube from multiple data sources?

    Hi all,
    Does OBIEE has the ability to create a single cube from multiple sources and does it has the ability to join multiple cubes?
    Looking forward to ur reply.

    Hi
    OBIEE can join multiple data sources to make a single data model, but it's not a cube in the multi-dimensional sense like Essbase or Oracle OLAP.
    To be able to join datasources together they need to have a common dimension or FK relationship depending on what the source is and what you want to do with it.
    Ed

  • How to create a copy cube from Business content statistics cube

    Dear Experts,
           I got a requirement to create the new cubes which is a copy of Business content statistics cubes.
    Request you to let me know how can i create a copy cube from Business content cube. My doubt is,weather is't the same as normal customized cube creation  by giving  copy from option.....
    Thanks in advance for your valuable assistance.
    Regards,
    Ramesh - Kumar.

    for copying the cube whose copy is to be made should be available in infoprovider tab in modelling of RSA1.
    first you have to install the business content cube ,so that it is found in the Info-providers tab in modelling .
    for that,first go to business content option found in the modelling tab of t-code RSA1 .
    find the cube and transfer it to the right and execute . It will be available in infoprovider tab of modelling .
    then you can create a copy as we do normally .

  • Is it possible to create a copy cube from business content cube

    Dear Experts,
    I have to  create the new cubes which is a copy of Business content statistics cubes .
    Request you to let me know how can i create a copy cube from Business content cube. My doubt is,weather is't the same as normal customized cube creation by giving copy from option.....
    Thanks in advance for your valuable assistance.
    Regards,
    Ramesh - Kumar.

    for copying the cube whose copy is to be made should be available in infoprovider tab in modelling of RSA1.
    first you have to install the business content cube ,so that it is found in the Info-providers tab in modelling .
    for that,first go to business content option found in the modelling tab of t-code RSA1 .
    find the cube and transfer it to the right and execute . It will be available in infoprovider tab of modelling .
    then you can create a copy as we do normally .

  • Creating a Summary Cube from Line Item Cube

    Friends,
    1. I have a GL Line Item cube that gives me item level information
    2. As I needed to create a summary cube I copied line item cube adjusted dimensions (removed Line Item) and activated it.
    3. When I loaded the summary cube from Line Item cube I got same number of transactions
    What have I missed? I want to summarize the info at GL Account level; or at any other info object level.
    I have done this before but it did not work this time. I think I have missed a step.
    I will be looking forward to your recommendations!
    Thanks for reading this!
    Ram

    Hi,
    Just removing tick against Line item will not work. You have to remove that characteristic from the cube. As this characteristic is High cardinality , you need to remove it from he cube.
    Decide at what level you want to have aggregated data and keep only those characteristics in the cube.
    Regards
    SS

  • Three dimensional array causing repeating pause in movie

    I'm creating what is essentially a 3 dimensional array. It's
    an array of objects, and each of those objects (a map) contains a
    few properties, one of which is a two dimensional array of tile
    objects. The strange thing is that the act of pusing each of these
    map objects on the array causes my movie to run with a periodic
    (about once a second) pause. The more map objects are pushed onto
    the array, the longer the pause. In between the pause, the movie
    runs at what seems like normal speed.
    Does this sound normal? I can see the movie slowing down
    while building the 3 dimensional array, but once the array is built
    (and i've verified that it builds corrently- no endless loops or
    anything), even if I do absolutely NOTHING wtih it I still get the
    pause for as long as my movie runs...
    that's the part that really seems strange to me- the
    repeating pause is directly related to my pushing of the map
    objects onto an array... Even if I build all the map objects and
    don't push them onto an array, the movie plays fine...
    Any ideas or help would be appreciated. For anyone who is
    interested, the associated actionscript is attached. Thanks!

    anyone? I don't need a direct solution... if anything the
    biggest problem I'd like to understand is that if all my objects
    are already created (i.e. already stored in memory), and my array
    is already created- how can simply pushing the objects onto the
    array cause a recurring pause/performance hit- even if I don't use
    the objects (including the array) at all (? All the memory is
    allocated already- all i'm doing is pushing a reference to the
    object onto the array, right? If anything I would think there could
    be a performance hit WHILE pushing objects onto the array, but what
    the heck is creating the pause/performance issue the rest of the
    time?
    I would really appreciate any help, I don't know any flash
    experts in person, and I've been racking my brain on this
    one!

  • Tools to Create a Color Effect from Greyscale to Color

    Hi.
    I'm about to pursue shooting a short film. Most of the film will be in black and white. Around the end of the film, I need an effect that will be able to sweep away or dissolve the black and white from the footage or environment and turn the environment back into color again. Are there any tools in After Effects CS5 that can help me achieve this or do I need to use a different program?

    Did you shoot in color? If so, how are you converting to black and white? Just using the Black & White effect? Whatever technique you use, you can just disable that effect for the part that you want to be color again. Since you describe a "sweep" or "dissolve", you can probably just use a wipe transition on an adjustment layer.

  • Three Dimensional Array.. help?

    Ok so in the program I am writing I need a 3D Array.. Im assuming that it is similar to 2D Arrays.. but my code seems to be doing weird things..
    char
    char[]
    char[][]I know that those work.. but does:
    char[][][]because when I compile my files I dont get any errors (JCreator)
    JCreator checks the code for errors, but it didnt give me any error messages for using char[][][] and adding stuff to it char[r][c][h] = char; is it possible to use a 3D array like this? I dont want to have 3 regular arrays..

    Ok.. So to check if it worked I made a NEW java file and tested out the code..
    public class Test
         char[][][] table = char[3][3][3];
         char cLoc = 97;
         public static void main(String[] args)
              for(int r = 0; r < 3; r++)
                   for(int c = 0; c < 3; c++)
                        for(int h = 0; h < 3; h++)
                             table[r][c][h] = cLoc;
                             cLoc = 98;
              System.out.println("=====");
              for(int r = 0; r < 3; r++)
                   for(int c = 0; c < 3; c++)
                        for(int h = 0; h < 3; h++)
                             System.out.println(table[r][c][h]);
    }When I compile with JCreator it says:
    ' ] ' expected line 3
    ' .class ' expected line 3
    Line three:
         char[][][] table = char[ 3 ][ 3 ][ 3 ];

  • One Cube from 3 Different ODS's

    Is it possible to create a single cube from three different ODS's , the ODS's have same characteristics but different key figures.
    Thanks

    As you mentioned , that all your ODS have the same characteristics you could create seperate update rules for all 3 ODS Objects..
    The difference will be only in the Key Figure update rule where only the Key figure present in the ODS will be mapped to the cube and the rest will be blank meaning no update..
    Hope this helps..
    ashish.

  • Populating ADF Table from Multi-Dimensional Array

    Hello!
    I'm trying to populate an ADF table from a multi-dimensional array.
    Let's say that my array is
    String [] [] myArr = new String [3][5].
    On my page backing bean, I have a private attribute called tmpArr like this...
    String [] [] tmpArr;
    ...which I will initialize later after I know the proper dimensions. The dimensions will come from a multimap that contains a key and and another array (for the key's value) containing values for the key. So once I know the dimensions I initialize my array with...
    tmpArr = new String [x][y] where x and y are the dimensions (counters).
    Now I have my multidimension array. On an jsp page I have an ADF table, and I'm setting the value for the table to the array (the table's value property is bound to the backing bean's tmpArr attribure).
    Like so:
    <af:panelForm id="availableOptions"
    binding="#{myBackingBean.availableOptionsValues}">
    <af:table emptyText="No items were found" rows="10"
    value="#{myBackingBean.tmpArr}" var='myArr'>
    Now I need to know how to do the following:
    1) Set the table's columns based on the number of attributes on the array.
    2) Set the table's rows based on the array's length.
    3) Set each table cell value to values on the array's 2nd dimension. I'm assuming that ADF takes care iterating through the array, and that I should do something like...
    <af:outputText value="#{myArr[][0]}"/>
    <af:outputText value="#{myArr[][1]}"/>
    etc...
    However, this isn't working...
    javax.faces.el.ReferenceSyntaxException: myArr[][0]
    ...bla bla bla...
    Was expecting one of:
    <INTEGER_LITERAL> ...
    <FLOATING_POINT_LITERAL> ...
    <STRING_LITERAL> ...
    "true" ...
    "false" ...
    "null" ...
    "not" ...
    "empty" ...
    <IDENTIFIER> ...
    Is there a blog or resource (article, book, etc) that shows how this is done? Anyone has done this and would like to share how?
    Thank you.

    This is in fact possible. I'm not sure about the "best practice" around doing this but there is a couple of ways to do this.
    You can either create a managed bean then right click on it and use the wizard to create a data control or you can do it as per below
    The a table will convert an array into a collection.
    Once you have created an array and generated the accessors in a bean you can then reference the mutli-dimensional array from a table as per below.
    <af:table value="#{pageFlowScope.PageBean.sessionArr}" var="row" rowBandingInterval="0" id="t1" varStatus="status">
    <af:column sortable="false" headerText="col1" id="c1">
    <af:outputText value="#{pageFlowScope.PageBean.sessionArr[status.index][0]}" id="ot1"/>
    </af:column>
    </af:table>
    String [][] sessionArr = new String[5][2];
    public void setSessionArr(String[][] sessionArr) {
    this.sessionArr = sessionArr;
    public String[][] getSessionArr() {
    sessionArr[0][0]="rice";
    sessionArr[1][0]="water";
    return sessionArr;
    EDIT: For either of the above methods the managed bean must have a scope of pageFlow or longer.
    Cheers,
    Aaron
    Edited by: Aaron Rapp on Oct 6, 2011 3:28 PM

  • OLAP cubes from heterogeneous data sources using XML DB

    hi.
    Q:1
    How we can create an OLAP cube (XML cubes) from XML data sources if using XML DB.
    Q:2
    How we can create an OLAP cubes from warehouses and flat files and covert these cubes into XML cubes.
    Q:3
    Is there any other tool (Except Analytical workspace manager AWM) which supports the construction of OLAP cubes in XML format from heterogeneous data sources?
    Edited by: user11236392 on Aug 21, 2009 3:50 AM

    Hi Stuart!
    Your undersatnding is partially correct. i am working for providing an architecture for XOLAP, XML is one of my data source.
    The idea is to generate uniform cubes from heterogeneous sources that can be integrated into a global cube. instead of building Oracle OLAP cubes from all the sources (this work is already done) i want to generate an XCube from XML data sources using XQuery.
    On the other hand if we have generated the Oracle OLAP cube from other sources like warehouses or flat files. i have to convert these Oracle OLAP cube into XML cube for uniformity. in an research paper i find that there is an operator Xcube embedded in XQuery which converts the multidimensional data (cube) into XML cube. im looking for the implementation of this operator in Query that how this operator works.
    hope u understand my architecture. but if u still have some confusion, kindly give me ur mail id. i will mail the diagram of my architecture.
    thanks.
    saqib

  • Command: extract color pallette from image

    Hiyas,
    I remember being able to run a command, proably an extension,
    to extract all the colors in an image, and paste them nicely in a
    what looked like a color sample format in a new image. Essentially
    it was describing all the colors in the image, with a square of
    color, along with the hex values of each color.
    I can't remember what this command is, or where it can be
    found.
    Can you help?
    Thanks,
    Steve

    Doigy wrote:
    > Hiyas,
    >
    > I remember being able to run a command, proably an
    extension, to extract all
    > the colors in an image, and paste them nicely in a what
    looked like a color
    > sample format in a new image. Essentially it was
    describing all the colors in
    > the image, with a square of color, along with the hex
    values of each color.
    >
    > I can't remember what this command is, or where it can
    be found.
    >
    > Can you help?
    >
    > Thanks,
    >
    > Steve
    >
    Commands > Web > Create Shared Palette will create a
    color table from a
    folder of images
    Jim Babbage - .:Community MX:. & .:Adobe Community
    Expert:.
    Extending Knowledge, Daily
    http://www.communityMX.com/
    CommunityMX - Free Resources:
    http://www.communitymx.com/free.cfm
    .:Adobe Community Expert for Fireworks:.
    news://forums.macromedia.com/macromedia.fireworks
    news://forums.macromedia.com/macromedia.dreamweaver

  • Multi-Dimensional Arrays

    Greetings everyone,
    Currently I am working on a project for school, this is my first term in Java and a project we have been assigned to do is pretty much create a application (using the SDK for use on the computer only) and create a application where a new user can modify a new computer from a base system via combo boxes, check boxes, radio buttons and what not. Here is me question. I was going to try and get tricky and create a three dimensional array to link the combo box with a label so the end user could choose an up grade, see what the upgrade did and see what the cost was say for instance:
    Athlon 64X2 4200+(combo) amd athlon 64 X2 4200+ 2.2GHz 1MB Cache Add $300.00
    Each one of those i was thinking i could place in a seperate column and each have a variable already assigned such as array[0][0] = Athlon64X2 4200+ array[0][1]="AMD Athalon 64.." array[0][2]="Add $300.00". I thought that, maybe it is, and i did something wrong and missed something. Anyhow, now i have broke it down to trying to do it with a reg array feeding the combo and the two dimensional array doing teh cost upgrade and the description, i guess my question is, why is it when i seem to try everything to grab the information i set in the array it does not seem to want to pull it. And if and when i do get it to work, how can i link the two dim with the combo. I am rather confused, maybe i am looking more into it then there really is, which i have done in other languages.
    If someone could give me a moch code using what i had there so i might clear the fog in me head, it would be greatly appreciated. If i have confused others with my confusion, just ask and i will try to clear it up. Thanks for all and any help.
    Whitz3nd

    The course i am taking is a rather basic Java programming class. We are using arrays instead of databases to get use to working with handling data. That is why the arrays. If that clears anything up. I know it seems kind of crude, like i said it is a basic Java class.
    Here is an easier question, that i would like to know:
    in a two dimensional array,
    if i had this info:
    AMD Athlon64 3100+
    AMD Athlon64 3300+
    AMD Athlon64 3800+
    and
    Add $100.00
    Add $200.00
    Add $200.00
    How would i place this data into an array. Would it be this way:
    String [][] test = { {"AMD Athlon64 3100+,Add $100.00"}, {"AMD Athlon64 3300+,Add $200.00"},{"AMD Athlon64 3800+,Add $200.00"} };
    As i said, i am a new person to the programmaing world, so please excuse my shortcomings!

  • How to Create a OLAP Cube in DEV using SSAS from Raw file system backup from Production?

    How to Create a OLAP Cube in DEV using SSAS from Raw file system backup from Production? I dont have a .abf file available. Two paritions in production are missing data. We were able to get back file system backup which contains the files for these two paritions.
    How do I create a cube in Dev using this file system backup.
    we are on SQL Server 2008R2.
    Thanks,

    How to Create a OLAP Cube in DEV using SSAS from Raw file system backup from Production? I dont have a .abf file available. Two paritions in production are missing data. We were able to get back file system backup which contains the files for these two paritions.
    How do I create a cube in Dev using this file system backup.
    we are on SQL Server 2008R2.
    Thanks,

  • How can one create a paint color generated from a photo using Kuler?

    How can one create a paint color generated from a photo using Kuler?

    The best way to remove a pattern is to use a Fast Fourier Transform.  There's a free plugin (as well as examples and instructions) here:
    http://dl.dropboxusercontent.com/u/6795661/4N6site/improc/fftplugin/examples.htm
    Using the plugin requires editing the individual colour channels, which PSE does not natively allow.  You'll need the reasonably-priced Elements+ addin:
    http://elementsplus.net/
    Here's a crop at 100% of the result I got:
    The pattern is much reduced.  With some experimenting, you can probably do a little better.
    Ken

Maybe you are looking for