Biomedical User Group Documents

cancel
Showing results for 
Search instead for 
Did you mean: 

How to change color in "Model Render Window"

Hi Bo!

I have modified your VI to change the color based on different Color LUTs. I have build a project and added "CustomRGBPalettes.vi"

Sincerly Pete

Comments
PietH
Member
Member
on

changecolor.png

DonRoth
Active Participant
Active Participant
on

I added gray scale palette to your palette control.   Let me know if you need me to send you the array of clusters for this.  I am sure you already know what it is.orthoviews-window (2).PNG

PietH
Member
Member
on

Great! How do you change the background color?

DonRoth
Active Participant
Active Participant
on

Just create property node for the 3d picture control.  All 0s are black and all 1s are white.  I think you can create any combination of numbers between 0 and 1 and create all sorts of colors.  I would only be interested in black and white probably.

background-color.PNG

DonRoth
Active Participant
Active Participant
on

By the way, awesome work all the way around on your end....Don

DonRoth
Active Participant
Active Participant
on

The combination of the orthoviews you created and the 3D Image Reconstructor.vi (one of the biomedical toolkit examples) which shows the orthoviews in individual views and which also shows volume rendering is very powerful.  The next step will be to allow user to select a range of Isovalues and transparency for the volume and orthoviews via a histogram type control that has cursors for width and center.  A critical upgrade will be 64-bit version of the biomedical toolkit allowing larger image stacks and reasonable performance hopefully for the 3d picture control and surface plots.

orthoviews_and_volume.PNG

PietH
Member
Member
on

Thanks Don.

The combination panel looks very nice!

Sorry for my question about changing of background color. Its so easy 😉

DonRoth
Active Participant
Active Participant
on

The appropriate slice image on the 2d viewer would need to change in concert with a page, row, or column change on your VI so that everything is properly working together.

I wish I had more time to try to combine and get everything in concert here, but I am completely tied up at the moment.  I am keeping this on my radar.

Sincerely,

Don

PietH
Member
Member
on

Change of Background Color with the ColorBox Control

colorbox.png

DonRoth
Active Participant
Active Participant
on

Sweet, did you just attach the new value color to all 4 numerics and then cluster to feed the 'BackgroundColor' property node?

DonRoth
Active Participant
Active Participant
on

What I suggested above regarding feeding color boxes directly into the 'BackgroundColor' property node will result in error, so assuming you did some other creative method.

PietH
Member
Member
on

I convert the color from color box to an RGBA value. Then it works

bgcolor.png

DonRoth
Active Participant
Active Participant
on

Yes, that works quite well!  Thanks, Don

Contributors